#5E1D88#5E1D88

#5E1D88 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.168 H 307.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5E1D88
RGBrgb(94, 29, 136)
HSLhsl(276, 65%, 32%)
HSVhsv(276, 79%, 53%)
CMYKcmyk(30.9%, 78.7%, 0%, 46.7%)
CIE-LABlab(26.84, 47.39, -46.55)
CIE-LCHlch(26.84, 66.43, 315.51°)
OKLaboklab(39.07% 0.1029 -0.1323)
OKLCHoklch(39.07% 0.168 307.9)
XYZxyz(9.4985, 5.0361, 23.7595)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D88 #47881D
analogous
#291D88 #5E1D88 #881D7C
triadic
#5E1D88 #885E1D #1D885E
tetradic
#5E1D88 #88291D #47881D #1D7C88
square
#5E1D88 #88291D #47881D #1D7C88
split-complementary
#5E1D88 #7C881D #1D8829
monochromatic
#180723 #3B1256 #5E1D88 #8128BA #9F48D8

Accessibility & contrast

On white

10.46
#5E1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D88
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D88#FFFFFF#000000##FFFFFF
##5E1D881.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#573852
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1d88;
/* rgb */ color: rgb(94, 29, 136);
/* oklch */ color: oklch(39.1% 0.168 307.9);
Tailwind
colors: {
  custom: {
    50: '#9061ab',
    500: '#5e1d88',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d88;
$custom-light: #9061ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d88",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 276.449,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39066,
    "c": 0.16756,
    "h": 307.9
  },
  "luminance": 0.05036
}

Semantic roles & 50–950 ramp

primary
#5E1D88
secondary
#74BA47
accent
#E84082
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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