#5F176B#5F176B

#5F176B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.147 H 321.5°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#5F176B
RGBrgb(95, 23, 107)
HSLhsl(291, 65%, 25%)
HSVhsv(291, 79%, 42%)
CMYKcmyk(11.2%, 78.5%, 0%, 58%)
CIE-LABlab(24.02, 43.64, -32.64)
CIE-LCHlch(24.02, 54.49, 323.20°)
OKLaboklab(36.43% 0.1148 -0.0914)
OKLCHoklch(36.43% 0.147 321.5)
XYZxyz(7.6793, 4.1077, 14.2954)
Luminance0.0411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F176B #236B17
analogous
#35176B #5F176B #6B174D
triadic
#5F176B #6B5F17 #176B5F
tetradic
#5F176B #6B3517 #236B17 #174D6B
square
#5F176B #6B3517 #236B17 #174D6B
split-complementary
#5F176B #4D6B17 #176B35
monochromatic
#160519 #320C39 #5F176B #8C229D #B82DD0

Accessibility & contrast

On white

11.53
#5F176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F176B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F176B#FFFFFF#000000##FFFFFF
##5F176B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#223C69
Tritanopia (blue-blind)
#602740
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f176b;
/* rgb */ color: rgb(95, 23, 107);
/* oklch */ color: oklch(36.4% 0.147 321.5);
Tailwind
colors: {
  custom: {
    50: '#905d96',
    500: '#5f176b',
    950: '#000000',
  },
}
SCSS
$custom: #5f176b;
$custom-light: #905d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5f176b",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 291.429,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36425,
    "c": 0.14671,
    "h": 321.5
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#5F176B
secondary
#4BA13D
accent
#E84058
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F176B

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

Preview Lab → · Contrast checker → · Palette generator →

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