#5F157D#5F157D

#5F157D is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.165 H 313.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5F157D
RGBrgb(95, 21, 125)
HSLhsl(283, 71%, 29%)
HSVhsv(283, 83%, 49%)
CMYKcmyk(24%, 83.2%, 0%, 51%)
CIE-LABlab(25.11, 48.05, -42.43)
CIE-LCHlch(25.11, 64.10, 318.55°)
OKLaboklab(37.61% 0.1137 -0.1201)
OKLCHoklch(37.61% 0.165 313.4)
XYZxyz(8.6885, 4.4502, 19.7993)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F157D #337D15
analogous
#2B157D #5F157D #7D1567
triadic
#5F157D #7D5F15 #157D5F
tetradic
#5F157D #7D2B15 #337D15 #15677D
square
#5F157D #7D2B15 #337D15 #15677D
split-complementary
#5F157D #677D15 #157D2B
monochromatic
#14041A #370C49 #5F157D #871EB1 #AB30DC

Accessibility & contrast

On white

11.11
#5F157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5F157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F157D
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F157D#FFFFFF#000000##FFFFFF
##5F157D1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#063D7B
Tritanopia (blue-blind)
#5C2F4A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f157d;
/* rgb */ color: rgb(95, 21, 125);
/* oklch */ color: oklch(37.6% 0.165 313.4);
Tailwind
colors: {
  custom: {
    50: '#915da3',
    500: '#5f157d',
    950: '#000000',
  },
}
SCSS
$custom: #5f157d;
$custom-light: #915da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f157d",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 282.692,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37609,
    "c": 0.16536,
    "h": 313.4
  },
  "luminance": 0.0445
}

Semantic roles & 50–950 ramp

primary
#5F157D
secondary
#5EB23C
accent
#EE3A6E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F157D

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

Preview Lab → · Contrast checker → · Palette generator →

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