#5E1971#5E1971

#5E1971 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.9% C 0.150 H 317.8°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#5E1971
RGBrgb(94, 25, 113)
HSLhsl(287, 64%, 27%)
HSVhsv(287, 78%, 44%)
CMYKcmyk(16.8%, 77.9%, 0%, 55.7%)
CIE-LABlab(24.54, 43.88, -35.70)
CIE-LCHlch(24.54, 56.57, 320.87°)
OKLaboklab(36.89% 0.1108 -0.1004)
OKLCHoklch(36.89% 0.15 317.8)
XYZxyz(7.9439, 4.2676, 16.0249)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1971 #2C7119
analogous
#321971 #5E1971 #711958
triadic
#5E1971 #715E19 #19715E
tetradic
#5E1971 #713219 #2C7119 #195871
square
#5E1971 #713219 #2C7119 #195871
split-complementary
#5E1971 #587119 #197132
monochromatic
#150619 #340E3F #5E1971 #8824A3 #AF33D2

Accessibility & contrast

On white

11.33
#5E1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5E1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1971
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1971#FFFFFF#000000##FFFFFF
##5E19711.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#1C3C6F
Tritanopia (blue-blind)
#5D2B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1971;
/* rgb */ color: rgb(94, 25, 113);
/* oklch */ color: oklch(36.9% 0.150 317.8);
Tailwind
colors: {
  custom: {
    50: '#8f5e9a',
    500: '#5e1971',
    950: '#000000',
  },
}
SCSS
$custom: #5e1971;
$custom-light: #8f5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1971",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 287.045,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36889,
    "c": 0.14954,
    "h": 317.8
  },
  "luminance": 0.04267
}

Semantic roles & 50–950 ramp

primary
#5E1971
secondary
#56A640
accent
#E74165
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1971

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

Preview Lab → · Contrast checker → · Palette generator →

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