#4E219D#4E219D

#4E219D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.183 H 292.2°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4E219D
RGBrgb(78, 33, 157)
HSLhsl(262, 65%, 37%)
HSVhsv(262, 79%, 62%)
CMYKcmyk(50.3%, 79%, 0%, 38.4%)
CIE-LABlab(27.13, 48.30, -59.11)
CIE-LCHlch(27.13, 76.33, 309.25°)
OKLaboklab(39.38% 0.0694 -0.1698)
OKLCHoklch(39.38% 0.183 292.2)
XYZxyz(9.7698, 5.1414, 32.3694)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E219D #709D21
analogous
#21329D #4E219D #8C219D
triadic
#4E219D #9D4E21 #219D4E
tetradic
#4E219D #9D2132 #709D21 #219D8C
square
#4E219D #9D2132 #709D21 #219D8C
split-complementary
#4E219D #9D8C21 #329D21
monochromatic
#1C0C38 #35166A #4E219D #672CD0 #8B5CDD

Accessibility & contrast

On white

10.35
#4E219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E219D
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E219D#FFFFFF#000000##FFFFFF
##4E219D1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#34445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e219d;
/* rgb */ color: rgb(78, 33, 157);
/* oklch */ color: oklch(39.4% 0.183 292.2);
Tailwind
colors: {
  custom: {
    50: '#8862bb',
    500: '#4e219d',
    950: '#000000',
  },
}
SCSS
$custom: #4e219d;
$custom-light: #8862bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e219d",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 261.774,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39377,
    "c": 0.18338,
    "h": 292.2
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#4E219D
secondary
#9BC159
accent
#E840AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4E219D

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

Preview Lab → · Contrast checker → · Palette generator →

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