#5F1372#5F1372

#5F1372 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.157 H 318.4°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#5F1372
RGBrgb(95, 19, 114)
HSLhsl(288, 71%, 26%)
HSVhsv(288, 83%, 45%)
CMYKcmyk(16.7%, 83.3%, 0%, 55.3%)
CIE-LABlab(24.04, 46.42, -37.13)
CIE-LCHlch(24.04, 59.44, 321.34°)
OKLaboklab(36.6% 0.1175 -0.1045)
OKLCHoklch(36.6% 0.157 318.4)
XYZxyz(7.9890, 4.1139, 16.2896)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1372 #267213
analogous
#2F1372 #5F1372 #721355
triadic
#5F1372 #725F13 #13725F
tetradic
#5F1372 #722F13 #267213 #135572
square
#5F1372 #722F13 #267213 #135572
split-complementary
#5F1372 #557213 #13722F
monochromatic
#16041A #330A3E #5F1372 #8B1CA6 #B625DB

Accessibility & contrast

On white

11.52
#5F1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1372
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1372#FFFFFF#000000##FFFFFF
##5F13721.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#183B70
Tritanopia (blue-blind)
#5E2943
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1372;
/* rgb */ color: rgb(95, 19, 114);
/* oklch */ color: oklch(36.6% 0.157 318.4);
Tailwind
colors: {
  custom: {
    50: '#905c9b',
    500: '#5f1372',
    950: '#000000',
  },
}
SCSS
$custom: #5f1372;
$custom-light: #905c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1372",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 288,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36598,
    "c": 0.15725,
    "h": 318.4
  },
  "luminance": 0.04114
}

Semantic roles & 50–950 ramp

primary
#5F1372
secondary
#4FA938
accent
#EE3A5E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1372

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

Preview Lab → · Contrast checker → · Palette generator →

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