#5F174F#5F174F

#5F174F is a dark, vivid pink. Relative luminance 0.036; OKLCH L 34.7% C 0.123 H 338.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5F174F
RGBrgb(95, 23, 79)
HSLhsl(313, 61%, 23%)
HSVhsv(313, 76%, 37%)
CMYKcmyk(0%, 75.8%, 16.8%, 62.7%)
CIE-LABlab(22.34, 38.55, -16.79)
CIE-LCHlch(22.34, 42.05, 336.46°)
OKLaboklab(34.67% 0.114 -0.0455)
OKLCHoklch(34.67% 0.123 338.2)
XYZxyz(6.4371, 3.6108, 7.7536)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F174F #175F27
analogous
#4B175F #5F174F #5F172B
triadic
#5F174F #4F5F17 #174F5F
tetradic
#5F174F #5F4B17 #175F27 #172B5F
square
#5F174F #5F4B17 #175F27 #172B5F
split-complementary
#5F174F #2B5F17 #175F4B
monochromatic
#190614 #2E0B26 #5F174F #902378 #C22FA1

Accessibility & contrast

On white

12.20
#5F174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F174F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F174F#FFFFFF#000000##FFFFFF
##5F174F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E51
Deuteranopia (green-blind)
#32394D
Tritanopia (blue-blind)
#651A31
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f174f;
/* rgb */ color: rgb(95, 23, 79);
/* oklch */ color: oklch(34.7% 0.123 338.2);
Tailwind
colors: {
  custom: {
    50: '#8f5c80',
    500: '#5f174f',
    950: '#000000',
  },
}
SCSS
$custom: #5f174f;
$custom-light: #8f5c80;
$custom-dark: #000000;
JSON
{
  "hex": "#5f174f",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 313.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34673,
    "c": 0.12278,
    "h": 338.2
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#5F174F
secondary
#3C9650
accent
#E46744
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F174F

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

Preview Lab → · Contrast checker → · Palette generator →

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