#5F186B#5F186B

#5F186B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.146 H 321.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5F186B
RGBrgb(95, 24, 107)
HSLhsl(291, 63%, 26%)
HSVhsv(291, 78%, 42%)
CMYKcmyk(11.2%, 77.6%, 0%, 58%)
CIE-LABlab(24.16, 43.26, -32.43)
CIE-LCHlch(24.16, 54.07, 323.14°)
OKLaboklab(36.52% 0.1138 -0.0908)
OKLCHoklch(36.52% 0.146 321.4)
XYZxyz(7.6995, 4.1481, 14.3022)
Luminance0.0415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F186B #246B18
analogous
#35186B #5F186B #6B184D
triadic
#5F186B #6B5F18 #186B5F
tetradic
#5F186B #6B3518 #246B18 #184D6B
square
#5F186B #6B3518 #246B18 #184D6B
split-complementary
#5F186B #4D6B18 #186B35
monochromatic
#160619 #330D39 #5F186B #8B239D #B82ECF

Accessibility & contrast

On white

11.48
#5F186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F186B
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F186B#FFFFFF#000000##FFFFFF
##5F186B1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#223C69
Tritanopia (blue-blind)
#602840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f186b;
/* rgb */ color: rgb(95, 24, 107);
/* oklch */ color: oklch(36.5% 0.146 321.4);
Tailwind
colors: {
  custom: {
    50: '#8f5d96',
    500: '#5f186b',
    950: '#000000',
  },
}
SCSS
$custom: #5f186b;
$custom-light: #8f5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5f186b",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 291.325,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36519,
    "c": 0.14554,
    "h": 321.4
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#5F186B
secondary
#4CA13E
accent
#E64159
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F186B

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

Preview Lab → · Contrast checker → · Palette generator →

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