#5F1157#5F1157

#5F1157 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.136 H 332.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#5F1157
RGBrgb(95, 17, 87)
HSLhsl(306, 70%, 22%)
HSVhsv(306, 82%, 37%)
CMYKcmyk(0%, 82.1%, 8.4%, 62.7%)
CIE-LABlab(22.03, 42.02, -22.66)
CIE-LCHlch(22.03, 47.74, 331.67°)
OKLaboklab(34.59% 0.1212 -0.0623)
OKLCHoklch(34.59% 0.136 332.8)
XYZxyz(6.6401, 3.5225, 9.3452)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1157 #115F19
analogous
#40115F #5F1157 #5F1130
triadic
#5F1157 #575F11 #11575F
tetradic
#5F1157 #5F4011 #115F19 #11305F
square
#5F1157 #5F4011 #115F19 #11305F
split-complementary
#5F1157 #305F11 #115F40
monochromatic
#1A0518 #2B0827 #5F1157 #931A87 #C724B6

Accessibility & contrast

On white

12.32
#5F1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1157
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1157#FFFFFF#000000##FFFFFF
##5F11571.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2E59
Deuteranopia (green-blind)
#2C3955
Tritanopia (blue-blind)
#641A33
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1157;
/* rgb */ color: rgb(95, 17, 87);
/* oklch */ color: oklch(34.6% 0.136 332.8);
Tailwind
colors: {
  custom: {
    50: '#8f5a86',
    500: '#5f1157',
    950: '#000000',
  },
}
SCSS
$custom: #5f1157;
$custom-light: #8f5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1157",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 306.154,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3459,
    "c": 0.13625,
    "h": 332.8
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#5F1157
secondary
#34983E
accent
#EC4E3B
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1157

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

Preview Lab → · Contrast checker → · Palette generator →

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