#5F115E#5F115E

#5F115E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.142 H 328.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#5F115E
RGBrgb(95, 17, 94)
HSLhsl(301, 70%, 22%)
HSVhsv(301, 82%, 37%)
CMYKcmyk(0%, 82.1%, 1.1%, 62.7%)
CIE-LABlab(22.45, 43.24, -26.64)
CIE-LCHlch(22.45, 50.79, 328.36°)
OKLaboklab(35.03% 0.1212 -0.0738)
OKLCHoklch(35.03% 0.142 328.7)
XYZxyz(6.9401, 3.6425, 10.9250)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F115E #115F12
analogous
#39115F #5F115E #5F1137
triadic
#5F115E #5E5F11 #115E5F
tetradic
#5F115E #5F3911 #115F12 #11375F
square
#5F115E #5F3911 #115F12 #11375F
split-complementary
#5F115E #375F11 #115F39
monochromatic
#1A051A #2B082B #5F115E #931A91 #C724C5

Accessibility & contrast

On white

12.15
#5F115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5F115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F115E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F115E#FFFFFF#000000##FFFFFF
##5F115E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012F60
Deuteranopia (green-blind)
#28395C
Tritanopia (blue-blind)
#621E37
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f115e;
/* rgb */ color: rgb(95, 17, 94);
/* oklch */ color: oklch(35.0% 0.142 328.7);
Tailwind
colors: {
  custom: {
    50: '#8f5a8c',
    500: '#5f115e',
    950: '#000000',
  },
}
SCSS
$custom: #5f115e;
$custom-light: #8f5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f115e",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 300.769,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.35032,
    "c": 0.14193,
    "h": 328.7
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#5F115E
secondary
#349835
accent
#EC3E3B
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F115E

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

Preview Lab → · Contrast checker → · Palette generator →

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