#4E2FA4

A color in the Violet family

#4e2fa4 is a color in the Violet family: RGB(78, 47, 164), HSL(256°, 55%, 41%), CMYK(52%, 71%, 0%, 36%). Closest named color: darkslateblue. Contrast is 9.26:1 on white and 2.27:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#4e2fa4
RGBrgb(78 47 164)
RGB (legacy)rgb(78, 47, 164)
RGB %rgb(31% 18% 64%)
HSLhsl(256 55% 41%)
HSV / HSBhsv(256, 71%, 64%)
HWBhwb(256 18% 36%)
CMYKcmyk(52%, 71%, 0%, 36%)
CIELAB (D50)lab(29.37 37.2 -59.41)
LCHlch(29.37 70.1 302.05)
OKLaboklab(0.4176 0.0558 -0.1674)
OKLCHoklch(0.4176 0.1765 288.45)
Decimal5124004

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 5.2
Closest web-safe color#663399
Hue256°
Saturation (HSL / HSV)55% / 71%
Lightness (HSL)41%
Brightness or Value (HSV)64%
Luminance (Rec.601 / Rec.709)27% / 24%
Relative luminance (WCAG)0.0633
Red / Green / Blue78 / 47 / 164

WCAG 2.2 Contrast Ratio

On White (#ffffff)
9.26:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.27: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 90.7 / -11.6 · As background with white / black text: Lc -95.1 / 13.3

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: #4e2fa4;
  --color-brand-oklch: oklch(41.76% 0.1765 288.45);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 47 164 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2fa4] text-[#4e2fa4] border-[#4e2fa4]">