#5F1158#5F1158

#5F1158 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.137 H 332.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#5F1158
RGBrgb(95, 17, 88)
HSLhsl(305, 70%, 22%)
HSVhsv(305, 82%, 37%)
CMYKcmyk(0%, 82.1%, 7.4%, 62.7%)
CIE-LABlab(22.08, 42.20, -23.23)
CIE-LCHlch(22.08, 48.17, 331.16°)
OKLaboklab(34.65% 0.1212 -0.0639)
OKLCHoklch(34.65% 0.137 332.2)
XYZxyz(6.6812, 3.5389, 9.5618)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1158 #115F18
analogous
#3F115F #5F1158 #5F1131
triadic
#5F1158 #585F11 #11585F
tetradic
#5F1158 #5F3F11 #115F18 #11315F
square
#5F1158 #5F3F11 #115F18 #11315F
split-complementary
#5F1158 #315F11 #115F3F
monochromatic
#1A0518 #2B0828 #5F1158 #931A88 #C724B8

Accessibility & contrast

On white

12.30
#5F1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1158
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1158#FFFFFF#000000##FFFFFF
##5F11581.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2E5A
Deuteranopia (green-blind)
#2B3956
Tritanopia (blue-blind)
#631B34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1158;
/* rgb */ color: rgb(95, 17, 88);
/* oklch */ color: oklch(34.7% 0.137 332.2);
Tailwind
colors: {
  custom: {
    50: '#8f5a87',
    500: '#5f1158',
    950: '#000000',
  },
}
SCSS
$custom: #5f1158;
$custom-light: #8f5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1158",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 305.385,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34651,
    "c": 0.13705,
    "h": 332.2
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#5F1158
secondary
#34983D
accent
#EC4B3B
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1158

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

Preview Lab → · Contrast checker → · Palette generator →

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