#5F155B#5F155B

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

Color values

HEX#5F155B
RGBrgb(95, 21, 91)
HSLhsl(303, 64%, 23%)
HSVhsv(303, 78%, 37%)
CMYKcmyk(0%, 77.9%, 4.2%, 62.7%)
CIE-LABlab(22.74, 41.35, -24.19)
CIE-LCHlch(22.74, 47.91, 329.67°)
OKLaboklab(35.18% 0.1173 -0.0667)
OKLCHoklch(35.18% 0.135 330.4)
XYZxyz(6.8758, 3.7251, 10.2524)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F155B #155F19
analogous
#3E155F #5F155B #5F1536
triadic
#5F155B #5B5F15 #155B5F
tetradic
#5F155B #5F3E15 #155F19 #15365F
square
#5F155B #5F3E15 #155F19 #15365F
split-complementary
#5F155B #365F15 #155F3E
monochromatic
#190618 #2D0A2B #5F155B #91208B #C32BBB

Accessibility & contrast

On white

12.03
#5F155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F155B
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F155B#FFFFFF#000000##FFFFFF
##5F155B1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D305D
Deuteranopia (green-blind)
#2B3A59
Tritanopia (blue-blind)
#631F36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f155b;
/* rgb */ color: rgb(95, 21, 91);
/* oklch */ color: oklch(35.2% 0.135 330.4);
Tailwind
colors: {
  custom: {
    50: '#8f5b8a',
    500: '#5f155b',
    950: '#000000',
  },
}
SCSS
$custom: #5f155b;
$custom-light: #8f5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f155b",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 303.243,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35179,
    "c": 0.135,
    "h": 330.4
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#5F155B
secondary
#3A963F
accent
#E74A41
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F155B

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

Preview Lab → · Contrast checker → · Palette generator →

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