#5F155C#5F155C

#5F155C is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.136 H 329.8°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#5F155C
RGBrgb(95, 21, 92)
HSLhsl(302, 64%, 23%)
HSVhsv(302, 78%, 37%)
CMYKcmyk(0%, 77.9%, 3.2%, 62.7%)
CIE-LABlab(22.80, 41.53, -24.76)
CIE-LCHlch(22.80, 48.35, 329.19°)
OKLaboklab(35.24% 0.1174 -0.0684)
OKLCHoklch(35.24% 0.136 329.8)
XYZxyz(6.9192, 3.7425, 10.4811)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F155C #155F18
analogous
#3D155F #5F155C #5F1537
triadic
#5F155C #5C5F15 #155C5F
tetradic
#5F155C #5F3D15 #155F18 #15375F
square
#5F155C #5F3D15 #155F18 #15375F
split-complementary
#5F155C #375F15 #155F3D
monochromatic
#190618 #2D0A2B #5F155C #91208D #C32BBD

Accessibility & contrast

On white

12.01
#5F155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F155C
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F155C#FFFFFF#000000##FFFFFF
##5F155C1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B305E
Deuteranopia (green-blind)
#2B3A5A
Tritanopia (blue-blind)
#631F37
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f155c;
/* rgb */ color: rgb(95, 21, 92);
/* oklch */ color: oklch(35.2% 0.136 329.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b8a',
    500: '#5f155c',
    950: '#000000',
  },
}
SCSS
$custom: #5f155c;
$custom-light: #8f5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f155c",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 302.432,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35242,
    "c": 0.13584,
    "h": 329.8
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#5F155C
secondary
#3A963D
accent
#E74841
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F155C

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

Preview Lab → · Contrast checker → · Palette generator →

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