#5F155E#5F155E

#5F155E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.138 H 328.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5F155E
RGBrgb(95, 21, 94)
HSLhsl(301, 64%, 23%)
HSVhsv(301, 78%, 37%)
CMYKcmyk(0%, 77.9%, 1.1%, 62.7%)
CIE-LABlab(22.92, 41.89, -25.89)
CIE-LCHlch(22.92, 49.24, 328.28°)
OKLaboklab(35.37% 0.1174 -0.0717)
OKLCHoklch(35.37% 0.138 328.6)
XYZxyz(7.0078, 3.7779, 10.9476)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F155E #155F16
analogous
#3B155F #5F155E #5F1539
triadic
#5F155E #5E5F15 #155E5F
tetradic
#5F155E #5F3B15 #155F16 #15395F
square
#5F155E #5F3B15 #155F16 #15395F
split-complementary
#5F155E #395F15 #155F3B
monochromatic
#190619 #2D0A2C #5F155E #912090 #C32BC1

Accessibility & contrast

On white

11.96
#5F155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F155E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F155E#FFFFFF#000000##FFFFFF
##5F155E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083060
Deuteranopia (green-blind)
#2A3A5C
Tritanopia (blue-blind)
#622038
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f155e;
/* rgb */ color: rgb(95, 21, 94);
/* oklch */ color: oklch(35.4% 0.138 328.6);
Tailwind
colors: {
  custom: {
    50: '#8f5b8c',
    500: '#5f155e',
    950: '#000000',
  },
}
SCSS
$custom: #5f155e;
$custom-light: #8f5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f155e",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 300.811,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35369,
    "c": 0.13754,
    "h": 328.6
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#5F155E
secondary
#3A963B
accent
#E74341
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F155E

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

Preview Lab → · Contrast checker → · Palette generator →

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