#5F155D#5F155D

#5F155D is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.137 H 329.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#5F155D
RGBrgb(95, 21, 93)
HSLhsl(302, 64%, 23%)
HSVhsv(302, 78%, 37%)
CMYKcmyk(0%, 77.9%, 2.1%, 62.7%)
CIE-LABlab(22.86, 41.71, -25.33)
CIE-LCHlch(22.86, 48.79, 328.73°)
OKLaboklab(35.31% 0.1174 -0.07)
OKLCHoklch(35.31% 0.137 329.2)
XYZxyz(6.9632, 3.7601, 10.7128)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F155D #155F17
analogous
#3C155F #5F155D #5F1538
triadic
#5F155D #5D5F15 #155D5F
tetradic
#5F155D #5F3C15 #155F17 #15385F
square
#5F155D #5F3C15 #155F17 #15385F
split-complementary
#5F155D #385F15 #155F3C
monochromatic
#190619 #2D0A2C #5F155D #91208E #C32BBF

Accessibility & contrast

On white

11.99
#5F155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F155D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F155D#FFFFFF#000000##FFFFFF
##5F155D1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305F
Deuteranopia (green-blind)
#2A3A5B
Tritanopia (blue-blind)
#632038
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f155d;
/* rgb */ color: rgb(95, 21, 93);
/* oklch */ color: oklch(35.3% 0.137 329.2);
Tailwind
colors: {
  custom: {
    50: '#8f5b8b',
    500: '#5f155d',
    950: '#000000',
  },
}
SCSS
$custom: #5f155d;
$custom-light: #8f5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f155d",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 301.622,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35305,
    "c": 0.13668,
    "h": 329.2
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#5F155D
secondary
#3A963C
accent
#E74541
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F155D

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

Preview Lab → · Contrast checker → · Palette generator →

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