#5F176E#5F176E

#5F176E is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.149 H 320.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5F176E
RGBrgb(95, 23, 110)
HSLhsl(290, 65%, 26%)
HSVhsv(290, 79%, 43%)
CMYKcmyk(13.6%, 79.1%, 0%, 56.9%)
CIE-LABlab(24.23, 44.24, -34.25)
CIE-LCHlch(24.23, 55.95, 322.25°)
OKLaboklab(36.64% 0.1145 -0.0961)
OKLCHoklch(36.64% 0.149 320)
XYZxyz(7.8398, 4.1719, 15.1411)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F176E #266E17
analogous
#33176E #5F176E #6E1751
triadic
#5F176E #6E5F17 #176E5F
tetradic
#5F176E #6E3317 #266E17 #17516E
square
#5F176E #6E3317 #266E17 #17516E
split-complementary
#5F176E #516E17 #176E33
monochromatic
#160519 #330C3B #5F176E #8B22A1 #B62CD3

Accessibility & contrast

On white

11.45
#5F176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F176E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F176E#FFFFFF#000000##FFFFFF
##5F176E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f176e;
/* rgb */ color: rgb(95, 23, 110);
/* oklch */ color: oklch(36.6% 0.149 320.0);
Tailwind
colors: {
  custom: {
    50: '#905d98',
    500: '#5f176e',
    950: '#000000',
  },
}
SCSS
$custom: #5f176e;
$custom-light: #905d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5f176e",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 289.655,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36639,
    "c": 0.14946,
    "h": 320
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#5F176E
secondary
#4FA43D
accent
#E83F5D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F176E

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

Preview Lab → · Contrast checker → · Palette generator →

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