#5E1672#5E1672

#5E1672 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.154 H 317.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5E1672
RGBrgb(94, 22, 114)
HSLhsl(287, 68%, 27%)
HSVhsv(287, 81%, 45%)
CMYKcmyk(17.5%, 80.7%, 0%, 55.3%)
CIE-LABlab(24.22, 45.20, -36.85)
CIE-LCHlch(24.22, 58.32, 320.81°)
OKLaboklab(36.69% 0.1136 -0.1037)
OKLCHoklch(36.69% 0.154 317.6)
XYZxyz(7.9398, 4.1688, 16.3027)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1672 #2A7216
analogous
#301672 #5E1672 #721658
triadic
#5E1672 #725E16 #16725E
tetradic
#5E1672 #723016 #2A7216 #165872
square
#5E1672 #723016 #2A7216 #165872
split-complementary
#5E1672 #587216 #167230
monochromatic
#15051A #340C3F #5E1672 #8820A5 #B12CD6

Accessibility & contrast

On white

11.45
#5E1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5E1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1672
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1672#FFFFFF#000000##FFFFFF
##5E16721.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#193C70
Tritanopia (blue-blind)
#5D2A44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1672;
/* rgb */ color: rgb(94, 22, 114);
/* oklch */ color: oklch(36.7% 0.154 317.6);
Tailwind
colors: {
  custom: {
    50: '#8f5d9b',
    500: '#5e1672',
    950: '#000000',
  },
}
SCSS
$custom: #5e1672;
$custom-light: #8f5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1672",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 286.957,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36689,
    "c": 0.15382,
    "h": 317.6
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#5E1672
secondary
#53A83C
accent
#EB3D63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1672

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

Preview Lab → · Contrast checker → · Palette generator →

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