#5E1888#5E1888

#5E1888 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.173 H 308.4°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#5E1888
RGBrgb(94, 24, 136)
HSLhsl(278, 70%, 31%)
HSVhsv(278, 82%, 53%)
CMYKcmyk(30.9%, 82.4%, 0%, 46.7%)
CIE-LABlab(26.19, 49.26, -47.61)
CIE-LCHlch(26.19, 68.50, 315.98°)
OKLaboklab(38.61% 0.1072 -0.1353)
OKLCHoklch(38.61% 0.173 308.4)
XYZxyz(9.3857, 4.8107, 23.7219)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1888 #428818
analogous
#261888 #5E1888 #88187A
triadic
#5E1888 #885E18 #18885E
tetradic
#5E1888 #882618 #428818 #187A88
square
#5E1888 #882618 #428818 #187A88
split-complementary
#5E1888 #7A8818 #188826
monochromatic
#160620 #3A0F54 #5E1888 #8221BC #A13EDD

Accessibility & contrast

On white

10.70
#5E1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E1888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1888
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1888#FFFFFF#000000##FFFFFF
##5E18881.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#573551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1888;
/* rgb */ color: rgb(94, 24, 136);
/* oklch */ color: oklch(38.6% 0.173 308.4);
Tailwind
colors: {
  custom: {
    50: '#905fab',
    500: '#5e1888',
    950: '#000000',
  },
}
SCSS
$custom: #5e1888;
$custom-light: #905fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1888",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 277.5,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38612,
    "c": 0.17263,
    "h": 308.4
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#5E1888
secondary
#6EBC40
accent
#ED3B7E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1888

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

Preview Lab → · Contrast checker → · Palette generator →

#5E1888 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva