#5F115F#5F115F

#5F115F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.143 H 328.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#5F115F
RGBrgb(95, 17, 95)
HSLhsl(300, 70%, 22%)
HSVhsv(300, 82%, 37%)
CMYKcmyk(0%, 82.1%, 0%, 62.7%)
CIE-LABlab(22.52, 43.42, -27.20)
CIE-LCHlch(22.52, 51.24, 327.94°)
OKLaboklab(35.1% 0.1212 -0.0754)
OKLCHoklch(35.1% 0.143 328.1)
XYZxyz(6.9852, 3.6605, 11.1629)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F115F #115F11
analogous
#38115F #5F115F #5F1138
triadic
#5F115F #5F5F11 #115F5F
tetradic
#5F115F #5F3811 #115F11 #11385F
square
#5F115F #5F3811 #115F11 #11385F
split-complementary
#5F115F #385F11 #115F38
monochromatic
#1A051A #2B082B #5F115F #931A93 #C724C7

Accessibility & contrast

On white

12.12
#5F115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F115F
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F115F#FFFFFF#000000##FFFFFF
##5F115F1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#28395D
Tritanopia (blue-blind)
#621E38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f115f;
/* rgb */ color: rgb(95, 17, 95);
/* oklch */ color: oklch(35.1% 0.143 328.1);
Tailwind
colors: {
  custom: {
    50: '#8f5a8d',
    500: '#5f115f',
    950: '#000000',
  },
}
SCSS
$custom: #5f115f;
$custom-light: #8f5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f115f",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.35098,
    "c": 0.14276,
    "h": 328.1
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#5F115F
secondary
#349834
accent
#EC3B3B
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F115F

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

Preview Lab → · Contrast checker → · Palette generator →

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