#4E2188#4E2188

#4E2188 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.160 H 298.1°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#4E2188
RGBrgb(78, 33, 136)
HSLhsl(266, 61%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(42.6%, 75.7%, 0%, 46.7%)
CIE-LABlab(25.21, 42.64, -49.29)
CIE-LCHlch(25.21, 65.18, 310.86°)
OKLaboklab(37.44% 0.0752 -0.1409)
OKLCHoklch(37.44% 0.16 298.1)
XYZxyz(8.1285, 4.4849, 23.7252)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2188 #5B8821
analogous
#212788 #4E2188 #812188
triadic
#4E2188 #884E21 #21884E
tetradic
#4E2188 #882127 #5B8821 #218881
square
#4E2188 #882127 #5B8821 #218881
split-complementary
#4E2188 #888121 #278821
monochromatic
#160925 #321557 #4E2188 #6A2DB9 #894FD4

Accessibility & contrast

On white

11.07
#4E2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2188
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2188#FFFFFF#000000##FFFFFF
##4E21881.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2188;
/* rgb */ color: rgb(78, 33, 136);
/* oklch */ color: oklch(37.4% 0.160 298.1);
Tailwind
colors: {
  custom: {
    50: '#8561ac',
    500: '#4e2188',
    950: '#000000',
  },
}
SCSS
$custom: #4e2188;
$custom-light: #8561ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2188",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 266.214,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37442,
    "c": 0.15973,
    "h": 298.1
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#4E2188
secondary
#89B84D
accent
#E4449E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E2188

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

Preview Lab → · Contrast checker → · Palette generator →

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