#5F115A#5F115A

#5F115A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.139 H 331.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5F115A
RGBrgb(95, 17, 90)
HSLhsl(304, 70%, 22%)
HSVhsv(304, 82%, 37%)
CMYKcmyk(0%, 82.1%, 5.3%, 62.7%)
CIE-LABlab(22.20, 42.54, -24.38)
CIE-LCHlch(22.20, 49.03, 330.18°)
OKLaboklab(34.78% 0.1213 -0.0672)
OKLCHoklch(34.78% 0.139 331)
XYZxyz(6.7652, 3.5725, 10.0041)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F115A #115F16
analogous
#3D115F #5F115A #5F1133
triadic
#5F115A #5A5F11 #115A5F
tetradic
#5F115A #5F3D11 #115F16 #11335F
square
#5F115A #5F3D11 #115F16 #11335F
split-complementary
#5F115A #335F11 #115F3D
monochromatic
#1A0519 #2B0829 #5F115A #931A8B #C724BC

Accessibility & contrast

On white

12.25
#5F115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F115A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F115A#FFFFFF#000000##FFFFFF
##5F115A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5C
Deuteranopia (green-blind)
#2A3958
Tritanopia (blue-blind)
#631C35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f115a;
/* rgb */ color: rgb(95, 17, 90);
/* oklch */ color: oklch(34.8% 0.139 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5a89',
    500: '#5f115a',
    950: '#000000',
  },
}
SCSS
$custom: #5f115a;
$custom-light: #8f5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f115a",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 303.846,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34776,
    "c": 0.13866,
    "h": 331
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#5F115A
secondary
#34983B
accent
#EC473B
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F115A

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

Preview Lab → · Contrast checker → · Palette generator →

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