#5F175E#5F175E

#5F175E is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.6% C 0.135 H 328.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5F175E
RGBrgb(95, 23, 94)
HSLhsl(301, 61%, 23%)
HSVhsv(301, 76%, 37%)
CMYKcmyk(0%, 75.8%, 1.1%, 62.7%)
CIE-LABlab(23.18, 41.14, -25.48)
CIE-LCHlch(23.18, 48.39, 328.23°)
OKLaboklab(35.56% 0.1153 -0.0705)
OKLCHoklch(35.56% 0.135 328.6)
XYZxyz(7.0460, 3.8544, 10.9604)
Luminance0.0385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F175E #175F18
analogous
#3C175F #5F175E #5F173A
triadic
#5F175E #5E5F17 #175E5F
tetradic
#5F175E #5F3C17 #175F18 #173A5F
square
#5F175E #5F3C17 #175F18 #173A5F
split-complementary
#5F175E #3A5F17 #175F3C
monochromatic
#190618 #2E0B2D #5F175E #90238F #C22FC0

Accessibility & contrast

On white

11.86
#5F175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5F175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F175E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F175E#FFFFFF#000000##FFFFFF
##5F175E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3160
Deuteranopia (green-blind)
#2B3B5C
Tritanopia (blue-blind)
#622139
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f175e;
/* rgb */ color: rgb(95, 23, 94);
/* oklch */ color: oklch(35.6% 0.135 328.6);
Tailwind
colors: {
  custom: {
    50: '#8f5c8c',
    500: '#5f175e',
    950: '#000000',
  },
}
SCSS
$custom: #5f175e;
$custom-light: #8f5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f175e",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 300.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35555,
    "c": 0.13512,
    "h": 328.6
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#5F175E
secondary
#3C963D
accent
#E44644
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F175E

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

Preview Lab → · Contrast checker → · Palette generator →

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