#5F1871#5F1871

#5F1871 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.9% C 0.151 H 318.5°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5F1871
RGBrgb(95, 24, 113)
HSLhsl(288, 65%, 27%)
HSVhsv(288, 79%, 44%)
CMYKcmyk(15.9%, 78.8%, 0%, 55.7%)
CIE-LABlab(24.57, 44.48, -35.64)
CIE-LCHlch(24.57, 57.00, 321.30°)
OKLaboklab(36.95% 0.1132 -0.1001)
OKLCHoklch(36.95% 0.151 318.5)
XYZxyz(8.0262, 4.2788, 16.0227)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1871 #2A7118
analogous
#331871 #5F1871 #711857
triadic
#5F1871 #715F18 #18715F
tetradic
#5F1871 #713318 #2A7118 #185771
square
#5F1871 #713318 #2A7118 #185771
split-complementary
#5F1871 #577118 #187133
monochromatic
#150519 #350D3F #5F1871 #8923A3 #B230D3

Accessibility & contrast

On white

11.32
#5F1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1871
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1871#FFFFFF#000000##FFFFFF
##5F18711.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#1D3D6F
Tritanopia (blue-blind)
#5F2B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1871;
/* rgb */ color: rgb(95, 24, 113);
/* oklch */ color: oklch(36.9% 0.151 318.5);
Tailwind
colors: {
  custom: {
    50: '#905e9a',
    500: '#5f1871',
    950: '#000000',
  },
}
SCSS
$custom: #5f1871;
$custom-light: #905e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1871",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 287.865,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36948,
    "c": 0.1511,
    "h": 318.5
  },
  "luminance": 0.04278
}

Semantic roles & 50–950 ramp

primary
#5F1871
secondary
#53A63E
accent
#E84062
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1871

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

Preview Lab → · Contrast checker → · Palette generator →

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