#4E1E8A

A color in the Violet family

#4e1e8a is a color in the Violet family: RGB(78, 30, 138), HSL(267°, 64%, 33%), CMYK(43%, 78%, 0%, 46%). Closest named color: indigo. Contrast is 11.19:1 on white and 1.88:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e1e8a
RGBrgb(78 30 138)
RGB (legacy)rgb(78, 30, 138)
RGB %rgb(31% 12% 54%)
HSLhsl(267 64% 33%)
HSV / HSBhsv(267, 78%, 54%)
HWBhwb(267 12% 46%)
CMYKcmyk(43%, 78%, 0%, 46%)
CIELAB (D50)lab(24.21 39.7 -51.91)
LCHlch(24.21 65.35 307.41)
OKLaboklab(0.3728 0.0774 -0.1461)
OKLCHoklch(0.3728 0.1653 297.92)
Decimal5119626

Properties

Color ToneViolet
Closest named colorindigo ΔE 3.8
Closest web-safe color#663399
Hue267°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)33%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)22% / 19%
Relative luminance (WCAG)0.0438
Red / Green / Blue78 / 30 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
11.19:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.88: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 95 / -7.7 · As background with white / black text: Lc -98.9 / 9

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: #4e1e8a;
  --color-brand-oklch: oklch(37.28% 0.1653 297.92);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 30 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e1e8a] text-[#4e1e8a] border-[#4e1e8a]">