#5F1159#5F1159

#5F1159 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.138 H 331.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5F1159
RGBrgb(95, 17, 89)
HSLhsl(305, 70%, 22%)
HSVhsv(305, 82%, 37%)
CMYKcmyk(0%, 82.1%, 6.3%, 62.7%)
CIE-LABlab(22.14, 42.37, -23.81)
CIE-LCHlch(22.14, 48.60, 330.67°)
OKLaboklab(34.71% 0.1212 -0.0656)
OKLCHoklch(34.71% 0.138 331.6)
XYZxyz(6.7229, 3.5556, 9.7815)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1159 #115F17
analogous
#3E115F #5F1159 #5F1132
triadic
#5F1159 #595F11 #11595F
tetradic
#5F1159 #5F3E11 #115F17 #11325F
square
#5F1159 #5F3E11 #115F17 #11325F
split-complementary
#5F1159 #325F11 #115F3E
monochromatic
#1A0518 #2B0828 #5F1159 #931A8A #C724BA

Accessibility & contrast

On white

12.27
#5F1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1159
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1159#FFFFFF#000000##FFFFFF
##5F11591.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092E5B
Deuteranopia (green-blind)
#2B3957
Tritanopia (blue-blind)
#631B34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1159;
/* rgb */ color: rgb(95, 17, 89);
/* oklch */ color: oklch(34.7% 0.138 331.6);
Tailwind
colors: {
  custom: {
    50: '#8f5a88',
    500: '#5f1159',
    950: '#000000',
  },
}
SCSS
$custom: #5f1159;
$custom-light: #8f5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1159",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 304.615,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.13785,
    "h": 331.6
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#5F1159
secondary
#34983C
accent
#EC493B
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1159

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

Preview Lab → · Contrast checker → · Palette generator →

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