#5F177D#5F177D

#5F177D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.8% C 0.163 H 313.3°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5F177D
RGBrgb(95, 23, 125)
HSLhsl(282, 69%, 29%)
HSVhsv(282, 82%, 49%)
CMYKcmyk(24%, 81.6%, 0%, 51%)
CIE-LABlab(25.34, 47.37, -42.05)
CIE-LCHlch(25.34, 63.35, 318.40°)
OKLaboklab(37.77% 0.112 -0.119)
OKLCHoklch(37.77% 0.163 313.3)
XYZxyz(8.7267, 4.5266, 19.8121)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F177D #357D17
analogous
#2C177D #5F177D #7D1768
triadic
#5F177D #7D5F17 #177D5F
tetradic
#5F177D #7D2C17 #357D17 #17687D
square
#5F177D #7D2C17 #357D17 #17687D
split-complementary
#5F177D #687D17 #177D2C
monochromatic
#14051A #380D49 #5F177D #8621B1 #A935DA

Accessibility & contrast

On white

11.02
#5F177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5F177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F177D
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F177D#FFFFFF#000000##FFFFFF
##5F177D1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#093E7B
Tritanopia (blue-blind)
#5C304A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f177d;
/* rgb */ color: rgb(95, 23, 125);
/* oklch */ color: oklch(37.8% 0.163 313.3);
Tailwind
colors: {
  custom: {
    50: '#905ea3',
    500: '#5f177d',
    950: '#000000',
  },
}
SCSS
$custom: #5f177d;
$custom-light: #905ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f177d",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 282.353,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37774,
    "c": 0.16342,
    "h": 313.3
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

primary
#5F177D
secondary
#60B23E
accent
#EC3C70
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F177D

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

Preview Lab → · Contrast checker → · Palette generator →

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