#5F185A#5F185A

#5F185A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.130 H 331.0°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#5F185A
RGBrgb(95, 24, 90)
HSLhsl(304, 60%, 23%)
HSVhsv(304, 75%, 37%)
CMYKcmyk(0%, 74.7%, 5.3%, 62.7%)
CIE-LABlab(23.08, 40.03, -22.99)
CIE-LCHlch(23.08, 46.16, 330.13°)
OKLaboklab(35.41% 0.114 -0.0633)
OKLCHoklch(35.41% 0.13 331)
XYZxyz(6.8914, 3.8249, 10.0462)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F185A #185F1D
analogous
#40185F #5F185A #5F1836
triadic
#5F185A #5A5F18 #185A5F
tetradic
#5F185A #5F4018 #185F1D #18365F
square
#5F185A #5F4018 #185F1D #18365F
split-complementary
#5F185A #365F18 #185F40
monochromatic
#180617 #2E0C2C #5F185A #902488 #C131B7

Accessibility & contrast

On white

11.90
#5F185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F185A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F185A#FFFFFF#000000##FFFFFF
##5F185A1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12315C
Deuteranopia (green-blind)
#2D3B58
Tritanopia (blue-blind)
#632037
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f185a;
/* rgb */ color: rgb(95, 24, 90);
/* oklch */ color: oklch(35.4% 0.130 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c89',
    500: '#5f185a',
    950: '#000000',
  },
}
SCSS
$custom: #5f185a;
$custom-light: #8f5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f185a",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 304.225,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35407,
    "c": 0.13039,
    "h": 331
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#5F185A
secondary
#3D9544
accent
#E35045
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F185A

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

Preview Lab → · Contrast checker → · Palette generator →

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