#5E1D96#5E1D96

#5E1D96 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.182 H 303.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5E1D96
RGBrgb(94, 29, 150)
HSLhsl(272, 68%, 35%)
HSVhsv(272, 81%, 59%)
CMYKcmyk(37.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(28.01, 50.67, -53.31)
CIE-LCHlch(28.01, 73.55, 313.55°)
OKLaboklab(40.25% 0.0993 -0.1521)
OKLCHoklch(40.25% 0.182 303.1)
XYZxyz(10.5592, 5.4604, 29.3459)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D96 #55961D
analogous
#211D96 #5E1D96 #961D92
triadic
#5E1D96 #965E1D #1D965E
tetradic
#5E1D96 #96211D #55961D #1D9296
square
#5E1D96 #96211D #55961D #1D9296
split-complementary
#5E1D96 #92961D #1D9621
monochromatic
#1E092F #3E1363 #5E1D96 #7E27C9 #9C50DD

Accessibility & contrast

On white

10.04
#5E1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5E1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D96
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D96#FFFFFF#000000##FFFFFF
##5E1D961.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#523E5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e1d96;
/* rgb */ color: rgb(94, 29, 150);
/* oklch */ color: oklch(40.3% 0.182 303.1);
Tailwind
colors: {
  custom: {
    50: '#9162b6',
    500: '#5e1d96',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d96;
$custom-light: #9162b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d96",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 272.231,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4025,
    "c": 0.18164,
    "h": 303.1
  },
  "luminance": 0.0546
}

Semantic roles & 50–950 ramp

primary
#5E1D96
secondary
#83C04F
accent
#EA3D8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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