#5E1B76#5E1B76

#5E1B76 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.5% C 0.152 H 315.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5E1B76
RGBrgb(94, 27, 118)
HSLhsl(284, 63%, 28%)
HSVhsv(284, 77%, 46%)
CMYKcmyk(20.3%, 77.1%, 0%, 53.7%)
CIE-LABlab(25.17, 44.15, -37.88)
CIE-LCHlch(25.17, 58.18, 319.37°)
OKLaboklab(37.46% 0.1082 -0.1068)
OKLCHoklch(37.46% 0.152 315.4)
XYZxyz(8.2775, 4.4719, 17.5632)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B76 #33761B
analogous
#301B76 #5E1B76 #761B60
triadic
#5E1B76 #765E1B #1B765E
tetradic
#5E1B76 #76301B #33761B #1B6076
square
#5E1B76 #76301B #33761B #1B6076
split-complementary
#5E1B76 #60761B #1B7630
monochromatic
#140619 #361044 #5E1B76 #8626A8 #AA3AD2

Accessibility & contrast

On white

11.09
#5E1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5E1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B76
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B76#FFFFFF#000000##FFFFFF
##5E1B761.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#183D74
Tritanopia (blue-blind)
#5C2F47
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1b76;
/* rgb */ color: rgb(94, 27, 118);
/* oklch */ color: oklch(37.5% 0.152 315.4);
Tailwind
colors: {
  custom: {
    50: '#8f5f9e',
    500: '#5e1b76',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b76;
$custom-light: #8f5f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b76",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 284.176,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37456,
    "c": 0.15198,
    "h": 315.4
  },
  "luminance": 0.04472
}

Semantic roles & 50–950 ramp

primary
#5E1B76
secondary
#5EAA42
accent
#E6426D
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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