#5E1972#5E1972

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

Color values

HEX#5E1972
RGBrgb(94, 25, 114)
HSLhsl(287, 64%, 27%)
HSVhsv(287, 78%, 45%)
CMYKcmyk(17.5%, 78.1%, 0%, 55.3%)
CIE-LABlab(24.61, 44.09, -36.23)
CIE-LCHlch(24.61, 57.07, 320.59°)
OKLaboklab(36.96% 0.1107 -0.1019)
OKLCHoklch(36.96% 0.15 317.4)
XYZxyz(8.0005, 4.2902, 16.3230)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1972 #2D7219
analogous
#321972 #5E1972 #72195A
triadic
#5E1972 #725E19 #19725E
tetradic
#5E1972 #723219 #2D7219 #195A72
square
#5E1972 #723219 #2D7219 #195A72
split-complementary
#5E1972 #5A7219 #197232
monochromatic
#150619 #350E40 #5E1972 #8724A4 #AF33D2

Accessibility & contrast

On white

11.30
#5E1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5E1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1972
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1972#FFFFFF#000000##FFFFFF
##5E19721.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#1B3C70
Tritanopia (blue-blind)
#5D2C44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1972;
/* rgb */ color: rgb(94, 25, 114);
/* oklch */ color: oklch(37.0% 0.150 317.4);
Tailwind
colors: {
  custom: {
    50: '#8f5e9b',
    500: '#5e1972',
    950: '#000000',
  },
}
SCSS
$custom: #5e1972;
$custom-light: #8f5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1972",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 286.517,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36963,
    "c": 0.15048,
    "h": 317.4
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#5E1972
secondary
#57A740
accent
#E74166
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1972

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

Preview Lab → · Contrast checker → · Palette generator →

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