#4E1889#4E1889

#4E1889 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.170 H 299.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4E1889
RGBrgb(78, 24, 137)
HSLhsl(269, 70%, 32%)
HSVhsv(269, 82%, 54%)
CMYKcmyk(43.1%, 82.5%, 0%, 46.3%)
CIE-LABlab(23.93, 46.85, -52.01)
CIE-LCHlch(23.93, 70.00, 312.01°)
OKLaboklab(36.57% 0.0827 -0.1489)
OKLCHoklch(36.57% 0.17 299)
XYZxyz(7.9827, 4.0790, 24.0288)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1889 #538918
analogous
#181A89 #4E1889 #871889
triadic
#4E1889 #894E18 #18894E
tetradic
#4E1889 #89181A #538918 #188987
square
#4E1889 #89181A #538918 #188987
split-complementary
#4E1889 #898718 #1A8918
monochromatic
#130621 #300F55 #4E1889 #6C21BD #8A3EDD

Accessibility & contrast

On white

11.57
#4E1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1889
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1889#FFFFFF#000000##FFFFFF
##4E18891.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#3F3851
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1889;
/* rgb */ color: rgb(78, 24, 137);
/* oklch */ color: oklch(36.6% 0.170 299.0);
Tailwind
colors: {
  custom: {
    50: '#865dac',
    500: '#4e1889',
    950: '#000000',
  },
}
SCSS
$custom: #4e1889;
$custom-light: #865dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1889",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 268.673,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36572,
    "c": 0.17028,
    "h": 299
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#4E1889
secondary
#81BD40
accent
#ED3B98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1889

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

Preview Lab → · Contrast checker → · Palette generator →

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