#5F115D#5F115D

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

Color values

HEX#5F115D
RGBrgb(95, 17, 93)
HSLhsl(302, 70%, 22%)
HSVhsv(302, 82%, 37%)
CMYKcmyk(0%, 82.1%, 2.1%, 62.7%)
CIE-LABlab(22.39, 43.06, -26.08)
CIE-LCHlch(22.39, 50.34, 328.80°)
OKLaboklab(34.97% 0.1213 -0.0722)
OKLCHoklch(34.97% 0.141 329.2)
XYZxyz(6.8955, 3.6246, 10.6903)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F115D #115F13
analogous
#3A115F #5F115D #5F1136
triadic
#5F115D #5D5F11 #115D5F
tetradic
#5F115D #5F3A11 #115F13 #11365F
square
#5F115D #5F3A11 #115F13 #11365F
split-complementary
#5F115D #365F11 #115F3A
monochromatic
#1A0519 #2B082A #5F115D #931A90 #C724C3

Accessibility & contrast

On white

12.18
#5F115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F115D
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F115D#FFFFFF#000000##FFFFFF
##5F115D1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F5F
Deuteranopia (green-blind)
#29395B
Tritanopia (blue-blind)
#631D37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f115d;
/* rgb */ color: rgb(95, 17, 93);
/* oklch */ color: oklch(35.0% 0.141 329.2);
Tailwind
colors: {
  custom: {
    50: '#8f5a8b',
    500: '#5f115d',
    950: '#000000',
  },
}
SCSS
$custom: #5f115d;
$custom-light: #8f5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f115d",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 301.538,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34967,
    "c": 0.14111,
    "h": 329.2
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#5F115D
secondary
#349837
accent
#EC403B
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F115D

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

Preview Lab → · Contrast checker → · Palette generator →

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