#5F175A#5F175A

#5F175A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.132 H 331.0°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#5F175A
RGBrgb(95, 23, 90)
HSLhsl(304, 61%, 23%)
HSVhsv(304, 76%, 37%)
CMYKcmyk(0%, 75.8%, 5.3%, 62.7%)
CIE-LABlab(22.95, 40.42, -23.21)
CIE-LCHlch(22.95, 46.61, 330.14°)
OKLaboklab(35.31% 0.1151 -0.0639)
OKLCHoklch(35.31% 0.132 331)
XYZxyz(6.8712, 3.7844, 10.0394)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F175A #175F1C
analogous
#40175F #5F175A #5F1736
triadic
#5F175A #5A5F17 #175A5F
tetradic
#5F175A #5F4017 #175F1C #17365F
square
#5F175A #5F4017 #175F1C #17365F
split-complementary
#5F175A #365F17 #175F40
monochromatic
#190617 #2E0B2B #5F175A #902389 #C22FB7

Accessibility & contrast

On white

11.95
#5F175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F175A
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F175A#FFFFFF#000000##FFFFFF
##5F175A1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11305C
Deuteranopia (green-blind)
#2D3A58
Tritanopia (blue-blind)
#632036
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f175a;
/* rgb */ color: rgb(95, 23, 90);
/* oklch */ color: oklch(35.3% 0.132 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c89',
    500: '#5f175a',
    950: '#000000',
  },
}
SCSS
$custom: #5f175a;
$custom-light: #8f5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f175a",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 304.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35307,
    "c": 0.13169,
    "h": 331
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#5F175A
secondary
#3C9642
accent
#E44F44
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F175A

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

Preview Lab → · Contrast checker → · Palette generator →

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