#5F175C#5F175C

#5F175C is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.133 H 329.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#5F175C
RGBrgb(95, 23, 92)
HSLhsl(303, 61%, 23%)
HSVhsv(303, 76%, 37%)
CMYKcmyk(0%, 75.8%, 3.2%, 62.7%)
CIE-LABlab(23.06, 40.78, -24.35)
CIE-LCHlch(23.06, 47.49, 329.16°)
OKLaboklab(35.43% 0.1152 -0.0672)
OKLCHoklch(35.43% 0.133 329.8)
XYZxyz(6.9574, 3.8189, 10.4938)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F175C #175F1A
analogous
#3E175F #5F175C #5F1738
triadic
#5F175C #5C5F17 #175C5F
tetradic
#5F175C #5F3E17 #175F1A #17385F
square
#5F175C #5F3E17 #175F1A #17385F
split-complementary
#5F175C #385F17 #175F3E
monochromatic
#190618 #2E0B2C #5F175C #90238C #C22FBB

Accessibility & contrast

On white

11.91
#5F175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F175C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F175C#FFFFFF#000000##FFFFFF
##5F175C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E315E
Deuteranopia (green-blind)
#2C3A5A
Tritanopia (blue-blind)
#632038
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f175c;
/* rgb */ color: rgb(95, 23, 92);
/* oklch */ color: oklch(35.4% 0.133 329.8);
Tailwind
colors: {
  custom: {
    50: '#8f5c8a',
    500: '#5f175c',
    950: '#000000',
  },
}
SCSS
$custom: #5f175c;
$custom-light: #8f5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f175c",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 302.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3543,
    "c": 0.13339,
    "h": 329.8
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#5F175C
secondary
#3C9640
accent
#E44A44
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F175C

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

Preview Lab → · Contrast checker → · Palette generator →

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