#5F186C#5F186C

#5F186C is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.146 H 320.9°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5F186C
RGBrgb(95, 24, 108)
HSLhsl(291, 64%, 26%)
HSVhsv(291, 78%, 42%)
CMYKcmyk(12%, 77.8%, 0%, 57.6%)
CIE-LABlab(24.22, 43.46, -32.97)
CIE-LCHlch(24.22, 54.55, 322.81°)
OKLaboklab(36.59% 0.1137 -0.0923)
OKLCHoklch(36.59% 0.146 320.9)
XYZxyz(7.7524, 4.1693, 14.5809)
Luminance0.0417 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F186C #256C18
analogous
#35186C #5F186C #6C184F
triadic
#5F186C #6C5F18 #186C5F
tetradic
#5F186C #6C3518 #256C18 #184F6C
square
#5F186C #6C3518 #256C18 #184F6C
split-complementary
#5F186C #4F6C18 #186C35
monochromatic
#160619 #330D3A #5F186C #8B239E #B72ED0

Accessibility & contrast

On white

11.45
#5F186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F186C
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F186C#FFFFFF#000000##FFFFFF
##5F186C1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356E
Deuteranopia (green-blind)
#223C6A
Tritanopia (blue-blind)
#602841
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f186c;
/* rgb */ color: rgb(95, 24, 108);
/* oklch */ color: oklch(36.6% 0.146 320.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d96',
    500: '#5f186c',
    950: '#000000',
  },
}
SCSS
$custom: #5f186c;
$custom-light: #8f5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5f186c",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 290.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36589,
    "c": 0.14647,
    "h": 320.9
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#5F186C
secondary
#4DA23E
accent
#E7415B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F186C

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

Preview Lab → · Contrast checker → · Palette generator →

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