#5F186A#5F186A

#5F186A is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.145 H 321.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5F186A
RGBrgb(95, 24, 106)
HSLhsl(292, 63%, 25%)
HSVhsv(292, 77%, 42%)
CMYKcmyk(10.4%, 77.4%, 0%, 58.4%)
CIE-LABlab(24.09, 43.06, -31.89)
CIE-LCHlch(24.09, 53.59, 323.48°)
OKLaboklab(36.45% 0.1139 -0.0892)
OKLCHoklch(36.45% 0.145 321.9)
XYZxyz(7.6472, 4.1272, 14.0267)
Luminance0.0413 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F186A #236A18
analogous
#36186A #5F186A #6A184C
triadic
#5F186A #6A5F18 #186A5F
tetradic
#5F186A #6A3618 #236A18 #184C6A
square
#5F186A #6A3618 #236A18 #184C6A
split-complementary
#5F186A #4C6A18 #186A36
monochromatic
#160619 #320D38 #5F186A #8C239C #B82FCE

Accessibility & contrast

On white

11.50
#5F186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F186A
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F186A#FFFFFF#000000##FFFFFF
##5F186A1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#233C68
Tritanopia (blue-blind)
#602840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f186a;
/* rgb */ color: rgb(95, 24, 106);
/* oklch */ color: oklch(36.4% 0.145 321.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d95',
    500: '#5f186a',
    950: '#000000',
  },
}
SCSS
$custom: #5f186a;
$custom-light: #8f5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#5f186a",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 291.951,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36449,
    "c": 0.14462,
    "h": 321.9
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#5F186A
secondary
#4BA03E
accent
#E64258
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F186A

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

Preview Lab → · Contrast checker → · Palette generator →

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