#5F1F71#5F1F71

#5F1F71 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.7% C 0.142 H 317.9°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5F1F71
RGBrgb(95, 31, 113)
HSLhsl(287, 57%, 28%)
HSVhsv(287, 73%, 44%)
CMYKcmyk(15.9%, 72.6%, 0%, 55.7%)
CIE-LABlab(25.58, 41.62, -34.02)
CIE-LCHlch(25.58, 53.75, 320.73°)
OKLaboklab(37.67% 0.1057 -0.0955)
OKLCHoklch(37.67% 0.142 317.9)
XYZxyz(8.1895, 4.6055, 16.0771)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F71 #31711F
analogous
#361F71 #5F1F71 #711F5A
triadic
#5F1F71 #715F1F #1F715F
tetradic
#5F1F71 #71361F #31711F #1F5A71
square
#5F1F71 #71361F #31711F #1F5A71
split-complementary
#5F1F71 #5A711F #1F7136
monochromatic
#140718 #371241 #5F1F71 #872CA1 #AC40CB

Accessibility & contrast

On white

10.93
#5F1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F71
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F71#FFFFFF#000000##FFFFFF
##5F1F711.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#223F6F
Tritanopia (blue-blind)
#5E2F45
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1f71;
/* rgb */ color: rgb(95, 31, 113);
/* oklch */ color: oklch(37.7% 0.142 317.9);
Tailwind
colors: {
  custom: {
    50: '#8f619a',
    500: '#5f1f71',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f71;
$custom-light: #8f619a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f71",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 286.829,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37666,
    "c": 0.14241,
    "h": 317.9
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

primary
#5F1F71
secondary
#5CA547
accent
#E04869
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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