#4E219F#4E219F

#4E219F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.186 H 291.7°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4E219F
RGBrgb(78, 33, 159)
HSLhsl(261, 66%, 38%)
HSVhsv(261, 79%, 62%)
CMYKcmyk(50.9%, 79.2%, 0%, 37.6%)
CIE-LABlab(27.33, 48.84, -60.02)
CIE-LCHlch(27.33, 77.38, 309.14°)
OKLaboklab(39.57% 0.0688 -0.1724)
OKLCHoklch(39.57% 0.186 291.7)
XYZxyz(9.9420, 5.2102, 33.2760)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E219F #729F21
analogous
#21339F #4E219F #8D219F
triadic
#4E219F #9F4E21 #219F4E
tetradic
#4E219F #9F2133 #729F21 #219F8D
square
#4E219F #9F2133 #729F21 #219F8D
split-complementary
#4E219F #9F8D21 #339F21
monochromatic
#1C0C3A #35166C #4E219F #672CD2 #8B5DDD

Accessibility & contrast

On white

10.28
#4E219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E219F
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E219F#FFFFFF#000000##FFFFFF
##4E219F1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#334560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e219f;
/* rgb */ color: rgb(78, 33, 159);
/* oklch */ color: oklch(39.6% 0.186 291.7);
Tailwind
colors: {
  custom: {
    50: '#8862bc',
    500: '#4e219f',
    950: '#000000',
  },
}
SCSS
$custom: #4e219f;
$custom-light: #8862bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e219f",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 261.429,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39569,
    "c": 0.18561,
    "h": 291.7
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#4E219F
secondary
#9DC25A
accent
#E93FAC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4E219F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4E219F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva