#5F1872#5F1872

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

Color values

HEX#5F1872
RGBrgb(95, 24, 114)
HSLhsl(287, 65%, 27%)
HSVhsv(287, 79%, 45%)
CMYKcmyk(16.7%, 78.9%, 0%, 55.3%)
CIE-LABlab(24.64, 44.69, -36.16)
CIE-LCHlch(24.64, 57.49, 321.02°)
OKLaboklab(37.02% 0.113 -0.1017)
OKLCHoklch(37.02% 0.152 318)
XYZxyz(8.0828, 4.3014, 16.3208)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1872 #2B7218
analogous
#321872 #5F1872 #721858
triadic
#5F1872 #725F18 #18725F
tetradic
#5F1872 #723218 #2B7218 #185872
square
#5F1872 #723218 #2B7218 #185872
split-complementary
#5F1872 #587218 #187232
monochromatic
#150519 #350D3F #5F1872 #8923A5 #B131D4

Accessibility & contrast

On white

11.29
#5F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1872
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1872#FFFFFF#000000##FFFFFF
##5F18721.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1872;
/* rgb */ color: rgb(95, 24, 114);
/* oklch */ color: oklch(37.0% 0.152 318.0);
Tailwind
colors: {
  custom: {
    50: '#905e9b',
    500: '#5f1872',
    950: '#000000',
  },
}
SCSS
$custom: #5f1872;
$custom-light: #905e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1872",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 287.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.37022,
    "c": 0.15203,
    "h": 318
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#5F1872
secondary
#55A73E
accent
#E84063
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1872

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

Preview Lab → · Contrast checker → · Palette generator →

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