#4E2F8D

A color in the Violet family

#4e2f8d is a color in the Violet family: RGB(78, 47, 141), HSL(260°, 50%, 37%), CMYK(45%, 67%, 0%, 45%). Closest named color: darkslateblue. Contrast is 9.93:1 on white and 2.12:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e2f8d
RGBrgb(78 47 141)
RGB (legacy)rgb(78, 47, 141)
RGB %rgb(31% 18% 55%)
HSLhsl(260 50% 37%)
HSV / HSBhsv(260, 67%, 55%)
HWBhwb(260 18% 45%)
CMYKcmyk(45%, 67%, 0%, 45%)
CIELAB (D50)lab(27.7 31.75 -48.1)
LCHlch(27.7 57.63 303.43)
OKLaboklab(0.3979 0.0595 -0.1353)
OKLCHoklch(0.3979 0.1478 293.75)
Decimal5123981

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 3.4
Closest web-safe color#663399
Hue260°
Saturation (HSL / HSV)50% / 67%
Lightness (HSL)37%
Brightness or Value (HSV)55%
Luminance (Rec.601 / Rec.709)26% / 24%
Relative luminance (WCAG)0.0558
Red / Green / Blue78 / 47 / 141

WCAG 2.2 Contrast Ratio

On White (#ffffff)
9.93:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.12:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 92.5 / -9.9 · As background with white / black text: Lc -96.7 / 11.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #4e2f8d;
  --color-brand-oklch: oklch(39.79% 0.1478 293.75);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 47 141 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2f8d] text-[#4e2f8d] border-[#4e2f8d]">