#5E1D8A#5E1D8A

#5E1D8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.170 H 307.2°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5E1D8A
RGBrgb(94, 29, 138)
HSLhsl(276, 65%, 33%)
HSVhsv(276, 79%, 54%)
CMYKcmyk(31.9%, 79%, 0%, 45.9%)
CIE-LABlab(27.00, 47.85, -47.53)
CIE-LCHlch(27.00, 67.45, 315.19°)
OKLaboklab(39.23% 0.1024 -0.1351)
OKLCHoklch(39.23% 0.17 307.2)
XYZxyz(9.6419, 5.0935, 24.5150)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D8A #498A1D
analogous
#281D8A #5E1D8A #8A1D7F
triadic
#5E1D8A #8A5E1D #1D8A5E
tetradic
#5E1D8A #8A281D #498A1D #1D7F8A
square
#5E1D8A #8A281D #498A1D #1D7F8A
split-complementary
#5E1D8A #7F8A1D #1D8A28
monochromatic
#190825 #3C1257 #5E1D8A #8028BD #9F49D9

Accessibility & contrast

On white

10.40
#5E1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D8A
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D8A#FFFFFF#000000##FFFFFF
##5E1D8A1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#563853
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1d8a;
/* rgb */ color: rgb(94, 29, 138);
/* oklch */ color: oklch(39.2% 0.170 307.2);
Tailwind
colors: {
  custom: {
    50: '#9061ad',
    500: '#5e1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d8a;
$custom-light: #9061ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d8a",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 275.78,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39231,
    "c": 0.16956,
    "h": 307.2
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#5E1D8A
secondary
#76BB48
accent
#E84084
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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