#5F157F#5F157F

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

Color values

HEX#5F157F
RGBrgb(95, 21, 127)
HSLhsl(282, 72%, 29%)
HSVhsv(282, 83%, 50%)
CMYKcmyk(25.2%, 83.5%, 0%, 50.2%)
CIE-LABlab(25.27, 48.48, -43.44)
CIE-LCHlch(25.27, 65.09, 318.14°)
OKLaboklab(37.77% 0.1132 -0.123)
OKLCHoklch(37.77% 0.167 312.6)
XYZxyz(8.8175, 4.5018, 20.4790)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F157F #357F15
analogous
#2A157F #5F157F #7F156A
triadic
#5F157F #7F5F15 #157F5F
tetradic
#5F157F #7F2A15 #357F15 #156A7F
square
#5F157F #7F2A15 #357F15 #156A7F
split-complementary
#5F157F #6A7F15 #157F2A
monochromatic
#14041A #380C4A #5F157F #861EB4 #A931DD

Accessibility & contrast

On white

11.05
#5F157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F157F
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F157F#FFFFFF#000000##FFFFFF
##5F157F1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#5B304B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f157f;
/* rgb */ color: rgb(95, 21, 127);
/* oklch */ color: oklch(37.8% 0.167 312.6);
Tailwind
colors: {
  custom: {
    50: '#915da5',
    500: '#5f157f',
    950: '#000000',
  },
}
SCSS
$custom: #5f157f;
$custom-light: #915da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f157f",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 281.887,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3777,
    "c": 0.16722,
    "h": 312.6
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#5F157F
secondary
#60B43C
accent
#EE3970
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F157F

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

Preview Lab → · Contrast checker → · Palette generator →

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