#5F177F#5F177F

#5F177F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.165 H 312.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5F177F
RGBrgb(95, 23, 127)
HSLhsl(282, 69%, 29%)
HSVhsv(282, 82%, 50%)
CMYKcmyk(25.2%, 81.9%, 0%, 50.2%)
CIE-LABlab(25.50, 47.80, -43.07)
CIE-LCHlch(25.50, 64.34, 317.98°)
OKLaboklab(37.93% 0.1116 -0.1219)
OKLCHoklch(37.93% 0.165 312.5)
XYZxyz(8.8558, 4.5783, 20.4917)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F177F #377F17
analogous
#2B177F #5F177F #7F176B
triadic
#5F177F #7F5F17 #177F5F
tetradic
#5F177F #7F2B17 #377F17 #176B7F
square
#5F177F #7F2B17 #377F17 #176B7F
split-complementary
#5F177F #6B7F17 #177F2B
monochromatic
#13051A #380E4B #5F177F #8620B3 #A836DB

Accessibility & contrast

On white

10.96
#5F177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F177F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F177F#FFFFFF#000000##FFFFFF
##5F177F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#033E7D
Tritanopia (blue-blind)
#5B314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f177f;
/* rgb */ color: rgb(95, 23, 127);
/* oklch */ color: oklch(37.9% 0.165 312.5);
Tailwind
colors: {
  custom: {
    50: '#915ea5',
    500: '#5f177f',
    950: '#000000',
  },
}
SCSS
$custom: #5f177f;
$custom-light: #915ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f177f",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 281.538,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37933,
    "c": 0.16531,
    "h": 312.5
  },
  "luminance": 0.04578
}

Semantic roles & 50–950 ramp

primary
#5F177F
secondary
#62B43E
accent
#EC3C72
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F177F

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

Preview Lab → · Contrast checker → · Palette generator →

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