#5F176F#5F176F

#5F176F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.150 H 319.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5F176F
RGBrgb(95, 23, 111)
HSLhsl(289, 66%, 26%)
HSVhsv(289, 79%, 44%)
CMYKcmyk(14.4%, 79.3%, 0%, 56.5%)
CIE-LABlab(24.30, 44.44, -34.78)
CIE-LCHlch(24.30, 56.43, 321.95°)
OKLaboklab(36.71% 0.1144 -0.0976)
OKLCHoklch(36.71% 0.15 319.5)
XYZxyz(7.8946, 4.1938, 15.4295)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F176F #276F17
analogous
#33176F #5F176F #6F1753
triadic
#5F176F #6F5F17 #176F5F
tetradic
#5F176F #6F3317 #276F17 #17536F
square
#5F176F #6F3317 #276F17 #17536F
split-complementary
#5F176F #536F17 #176F33
monochromatic
#160519 #340C3C #5F176F #8A22A2 #B52DD3

Accessibility & contrast

On white

11.42
#5F176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F176F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F176F#FFFFFF#000000##FFFFFF
##5F176F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#1E3C6D
Tritanopia (blue-blind)
#5F2942
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f176f;
/* rgb */ color: rgb(95, 23, 111);
/* oklch */ color: oklch(36.7% 0.150 319.5);
Tailwind
colors: {
  custom: {
    50: '#905d99',
    500: '#5f176f',
    950: '#000000',
  },
}
SCSS
$custom: #5f176f;
$custom-light: #905d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5f176f",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 289.091,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36711,
    "c": 0.15037,
    "h": 319.5
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#5F176F
secondary
#50A53D
accent
#E93F5E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F176F

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

Preview Lab → · Contrast checker → · Palette generator →

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