#5F1771#5F1771

#5F1771 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.152 H 318.6°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5F1771
RGBrgb(95, 23, 113)
HSLhsl(288, 66%, 27%)
HSVhsv(288, 80%, 44%)
CMYKcmyk(15.9%, 79.6%, 0%, 55.7%)
CIE-LABlab(24.44, 44.85, -35.84)
CIE-LCHlch(24.44, 57.41, 321.37°)
OKLaboklab(36.86% 0.1141 -0.1007)
OKLCHoklch(36.86% 0.152 318.6)
XYZxyz(8.0059, 4.2383, 16.0160)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1771 #297117
analogous
#321771 #5F1771 #711756
triadic
#5F1771 #715F17 #17715F
tetradic
#5F1771 #713217 #297117 #175671
square
#5F1771 #713217 #297117 #175671
split-complementary
#5F1771 #567117 #177132
monochromatic
#150519 #340D3E #5F1771 #8A21A4 #B32ED4

Accessibility & contrast

On white

11.37
#5F1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5F1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1771
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1771#FFFFFF#000000##FFFFFF
##5F17711.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#1C3C6F
Tritanopia (blue-blind)
#5F2A43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1771;
/* rgb */ color: rgb(95, 23, 113);
/* oklch */ color: oklch(36.9% 0.152 318.6);
Tailwind
colors: {
  custom: {
    50: '#905d9a',
    500: '#5f1771',
    950: '#000000',
  },
}
SCSS
$custom: #5f1771;
$custom-light: #905d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1771",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 288,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36857,
    "c": 0.15222,
    "h": 318.6
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#5F1771
secondary
#52A73D
accent
#E93F61
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1771

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

Preview Lab → · Contrast checker → · Palette generator →

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