#4E218B#4E218B

#4E218B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.163 H 297.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4E218B
RGBrgb(78, 33, 139)
HSLhsl(265, 62%, 34%)
HSVhsv(265, 76%, 55%)
CMYKcmyk(43.9%, 76.3%, 0%, 45.5%)
CIE-LABlab(25.48, 43.45, -50.73)
CIE-LCHlch(25.48, 66.79, 310.58°)
OKLaboklab(37.71% 0.0744 -0.1452)
OKLCHoklch(37.71% 0.163 297.1)
XYZxyz(8.3447, 4.5713, 24.8638)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E218B #5E8B21
analogous
#21298B #4E218B #83218B
triadic
#4E218B #8B4E21 #218B4E
tetradic
#4E218B #8B2129 #5E8B21 #218B83
square
#4E218B #8B2129 #5E8B21 #218B83
split-complementary
#4E218B #8B8321 #298B21
monochromatic
#160A28 #32155A #4E218B #6A2DBC #8951D6

Accessibility & contrast

On white

10.97
#4E218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E218B
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E218B#FFFFFF#000000##FFFFFF
##4E218B1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#3E3D54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e218b;
/* rgb */ color: rgb(78, 33, 139);
/* oklch */ color: oklch(37.7% 0.163 297.1);
Tailwind
colors: {
  custom: {
    50: '#8661ae',
    500: '#4e218b',
    950: '#000000',
  },
}
SCSS
$custom: #4e218b;
$custom-light: #8661ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e218b",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 265.472,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37709,
    "c": 0.16314,
    "h": 297.1
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#4E218B
secondary
#8CB94F
accent
#E543A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E218B

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

Preview Lab → · Contrast checker → · Palette generator →

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