#5E1688#5E1688

#5E1688 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.174 H 308.6°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5E1688
RGBrgb(94, 22, 136)
HSLhsl(278, 72%, 31%)
HSVhsv(278, 84%, 53%)
CMYKcmyk(30.9%, 83.8%, 0%, 46.7%)
CIE-LABlab(25.95, 49.94, -47.99)
CIE-LCHlch(25.95, 69.26, 316.14°)
OKLaboklab(38.45% 0.1087 -0.1364)
OKLCHoklch(38.45% 0.174 308.6)
XYZxyz(9.3460, 4.7312, 23.7087)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1688 #408816
analogous
#251688 #5E1688 #881679
triadic
#5E1688 #885E16 #16885E
tetradic
#5E1688 #882516 #408816 #167988
square
#5E1688 #882516 #408816 #167988
split-complementary
#5E1688 #798816 #168825
monochromatic
#15051F #3A0D53 #5E1688 #821FBD #A239DF

Accessibility & contrast

On white

10.79
#5E1688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1688
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1688#FFFFFF#000000##FFFFFF
##5E16881.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#573550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1688;
/* rgb */ color: rgb(94, 22, 136);
/* oklch */ color: oklch(38.4% 0.174 308.6);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5e1688',
    950: '#000000',
  },
}
SCSS
$custom: #5e1688;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1688",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 277.895,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38449,
    "c": 0.17446,
    "h": 308.6
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#5E1688
secondary
#6CBC3E
accent
#EF397C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1688

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

Preview Lab → · Contrast checker → · Palette generator →

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