#5E1B71#5E1B71

#5E1B71 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.1% C 0.147 H 317.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5E1B71
RGBrgb(94, 27, 113)
HSLhsl(287, 61%, 27%)
HSVhsv(287, 76%, 44%)
CMYKcmyk(16.8%, 76.1%, 0%, 55.7%)
CIE-LABlab(24.82, 43.09, -35.26)
CIE-LCHlch(24.82, 55.67, 320.71°)
OKLaboklab(37.09% 0.1088 -0.0991)
OKLCHoklch(37.09% 0.147 317.7)
XYZxyz(7.9882, 4.3562, 16.0396)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B71 #2E711B
analogous
#331B71 #5E1B71 #711B59
triadic
#5E1B71 #715E1B #1B715E
tetradic
#5E1B71 #71331B #2E711B #1B5971
square
#5E1B71 #71331B #2E711B #1B5971
split-complementary
#5E1B71 #59711B #1B7133
monochromatic
#150619 #350F40 #5E1B71 #8727A2 #AE37CF

Accessibility & contrast

On white

11.22
#5E1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5E1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B71
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B71#FFFFFF#000000##FFFFFF
##5E1B711.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#1E3D6F
Tritanopia (blue-blind)
#5D2D44
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1b71;
/* rgb */ color: rgb(94, 27, 113);
/* oklch */ color: oklch(37.1% 0.147 317.7);
Tailwind
colors: {
  custom: {
    50: '#8f5f9a',
    500: '#5e1b71',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b71;
$custom-light: #8f5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b71",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 286.744,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37087,
    "c": 0.14714,
    "h": 317.7
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#5E1B71
secondary
#58A642
accent
#E54367
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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