#5E1772#5E1772

#5E1772 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.153 H 317.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#5E1772
RGBrgb(94, 23, 114)
HSLhsl(287, 66%, 27%)
HSVhsv(287, 80%, 45%)
CMYKcmyk(17.5%, 79.8%, 0%, 55.3%)
CIE-LABlab(24.35, 44.84, -36.65)
CIE-LCHlch(24.35, 57.92, 320.74°)
OKLaboklab(36.78% 0.1127 -0.1031)
OKLCHoklch(36.78% 0.153 317.5)
XYZxyz(7.9593, 4.2077, 16.3092)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1772 #2B7217
analogous
#311772 #5E1772 #721759
triadic
#5E1772 #725E17 #17725E
tetradic
#5E1772 #723117 #2B7217 #175972
square
#5E1772 #723117 #2B7217 #175972
split-complementary
#5E1772 #597217 #177231
monochromatic
#150519 #340D3F #5E1772 #8821A5 #B02ED5

Accessibility & contrast

On white

11.40
#5E1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5E1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1772
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1772#FFFFFF#000000##FFFFFF
##5E17721.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1772;
/* rgb */ color: rgb(94, 23, 114);
/* oklch */ color: oklch(36.8% 0.153 317.5);
Tailwind
colors: {
  custom: {
    50: '#8f5d9b',
    500: '#5e1772',
    950: '#000000',
  },
}
SCSS
$custom: #5e1772;
$custom-light: #8f5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1772",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 286.813,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36777,
    "c": 0.15274,
    "h": 317.5
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#5E1772
secondary
#55A83D
accent
#E93E64
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1772

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

Preview Lab → · Contrast checker → · Palette generator →

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