#5F1554#5F1554

#5F1554 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.129 H 334.8°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5F1554
RGBrgb(95, 21, 84)
HSLhsl(309, 64%, 23%)
HSVhsv(309, 78%, 37%)
CMYKcmyk(0%, 77.9%, 11.6%, 62.7%)
CIE-LABlab(22.34, 40.14, -20.16)
CIE-LCHlch(22.34, 44.92, 333.33°)
OKLaboklab(34.76% 0.1169 -0.0551)
OKLCHoklch(34.76% 0.129 334.8)
XYZxyz(6.5878, 3.6099, 8.7356)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1554 #155F20
analogous
#45155F #5F1554 #5F152F
triadic
#5F1554 #545F15 #15545F
tetradic
#5F1554 #5F4515 #155F20 #152F5F
square
#5F1554 #5F4515 #155F20 #152F5F
split-complementary
#5F1554 #2F5F15 #155F45
monochromatic
#190616 #2D0A28 #5F1554 #912080 #C32BAD

Accessibility & contrast

On white

12.20
#5F1554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F1554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1554
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1554#FFFFFF#000000##FFFFFF
##5F15541.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142E56
Deuteranopia (green-blind)
#2F3952
Tritanopia (blue-blind)
#641B33
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1554;
/* rgb */ color: rgb(95, 21, 84);
/* oklch */ color: oklch(34.8% 0.129 334.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b84',
    500: '#5f1554',
    950: '#000000',
  },
}
SCSS
$custom: #5f1554;
$custom-light: #8f5b84;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1554",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 308.919,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34758,
    "c": 0.12926,
    "h": 334.8
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#5F1554
secondary
#3A9647
accent
#E75A41
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1554

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

Preview Lab → · Contrast checker → · Palette generator →

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