#5F155F#5F155F

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

Color values

HEX#5F155F
RGBrgb(95, 21, 95)
HSLhsl(300, 64%, 23%)
HSVhsv(300, 78%, 37%)
CMYKcmyk(0%, 77.9%, 0%, 62.7%)
CIE-LABlab(22.99, 42.07, -26.45)
CIE-LCHlch(22.99, 49.70, 327.84°)
OKLaboklab(35.43% 0.1174 -0.0733)
OKLCHoklch(35.43% 0.138 328)
XYZxyz(7.0530, 3.7960, 11.1855)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F155F #155F15
analogous
#3A155F #5F155F #5F153A
triadic
#5F155F #5F5F15 #155F5F
tetradic
#5F155F #5F3A15 #155F15 #153A5F
square
#5F155F #5F3A15 #155F15 #153A5F
split-complementary
#5F155F #3A5F15 #155F3A
monochromatic
#190619 #2D0A2D #5F155F #912091 #C32BC3

Accessibility & contrast

On white

11.94
#5F155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F155F
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F155F#FFFFFF#000000##FFFFFF
##5F155F1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063161
Deuteranopia (green-blind)
#293A5D
Tritanopia (blue-blind)
#622139
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f155f;
/* rgb */ color: rgb(95, 21, 95);
/* oklch */ color: oklch(35.4% 0.138 328.0);
Tailwind
colors: {
  custom: {
    50: '#8f5b8d',
    500: '#5f155f',
    950: '#000000',
  },
}
SCSS
$custom: #5f155f;
$custom-light: #8f5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f155f",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.1384,
    "h": 328
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#5F155F
secondary
#3A963A
accent
#E74141
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F155F

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

Preview Lab → · Contrast checker → · Palette generator →

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