#4E2189#4E2189

#4E2189 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.161 H 297.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#4E2189
RGBrgb(78, 33, 137)
HSLhsl(266, 61%, 33%)
HSVhsv(266, 76%, 54%)
CMYKcmyk(43.1%, 75.9%, 0%, 46.3%)
CIE-LABlab(25.30, 42.91, -49.77)
CIE-LCHlch(25.30, 65.72, 310.77°)
OKLaboklab(37.53% 0.0749 -0.1424)
OKLCHoklch(37.53% 0.161 297.8)
XYZxyz(8.1999, 4.5134, 24.1012)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2189 #5C8921
analogous
#212889 #4E2189 #822189
triadic
#4E2189 #894E21 #21894E
tetradic
#4E2189 #892128 #5C8921 #218982
square
#4E2189 #892128 #5C8921 #218982
split-complementary
#4E2189 #898221 #288921
monochromatic
#160926 #321558 #4E2189 #6A2DBA #8950D5

Accessibility & contrast

On white

11.04
#4E2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2189
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2189#FFFFFF#000000##FFFFFF
##4E21891.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#3F3C53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2189;
/* rgb */ color: rgb(78, 33, 137);
/* oklch */ color: oklch(37.5% 0.161 297.8);
Tailwind
colors: {
  custom: {
    50: '#8661ac',
    500: '#4e2189',
    950: '#000000',
  },
}
SCSS
$custom: #4e2189;
$custom-light: #8661ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2189",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 265.962,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3753,
    "c": 0.16088,
    "h": 297.8
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#4E2189
secondary
#8AB84E
accent
#E4449F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E2189

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

Preview Lab → · Contrast checker → · Palette generator →

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