#5F1D71#5F1D71

#5F1D71 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.4% C 0.145 H 318.1°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5F1D71
RGBrgb(95, 29, 113)
HSLhsl(287, 59%, 28%)
HSVhsv(287, 74%, 44%)
CMYKcmyk(15.9%, 74.3%, 0%, 55.7%)
CIE-LABlab(25.27, 42.48, -34.51)
CIE-LCHlch(25.27, 54.74, 320.91°)
OKLaboklab(37.45% 0.1079 -0.0969)
OKLCHoklch(37.45% 0.145 318.1)
XYZxyz(8.1389, 4.5042, 16.0603)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D71 #2F711D
analogous
#351D71 #5F1D71 #711D59
triadic
#5F1D71 #715F1D #1D715F
tetradic
#5F1D71 #71351D #2F711D #1D5971
square
#5F1D71 #71351D #2F711D #1D5971
split-complementary
#5F1D71 #59711D #1D7135
monochromatic
#140618 #361140 #5F1D71 #8829A2 #AE3CCD

Accessibility & contrast

On white

11.05
#5F1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D71
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D71#FFFFFF#000000##FFFFFF
##5F1D711.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#213E6F
Tritanopia (blue-blind)
#5F2E45
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1d71;
/* rgb */ color: rgb(95, 29, 113);
/* oklch */ color: oklch(37.4% 0.145 318.1);
Tailwind
colors: {
  custom: {
    50: '#8f609a',
    500: '#5f1d71',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d71;
$custom-light: #8f609a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d71",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 287.143,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37446,
    "c": 0.14504,
    "h": 318.1
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#5F1D71
secondary
#59A544
accent
#E24567
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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