#5F186F#5F186F

#5F186F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.149 H 319.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5F186F
RGBrgb(95, 24, 111)
HSLhsl(289, 64%, 26%)
HSVhsv(289, 78%, 44%)
CMYKcmyk(14.4%, 78.4%, 0%, 56.5%)
CIE-LABlab(24.43, 44.07, -34.58)
CIE-LCHlch(24.43, 56.01, 321.88°)
OKLaboklab(36.8% 0.1134 -0.097)
OKLCHoklch(36.8% 0.149 319.4)
XYZxyz(7.9148, 4.2343, 15.4362)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F186F #286F18
analogous
#34186F #5F186F #6F1854
triadic
#5F186F #6F5F18 #186F5F
tetradic
#5F186F #6F3418 #286F18 #18546F
square
#5F186F #6F3418 #286F18 #18546F
split-complementary
#5F186F #546F18 #186F34
monochromatic
#160519 #340D3D #5F186F #8A23A1 #B42FD2

Accessibility & contrast

On white

11.37
#5F186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5F186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F186F
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F186F#FFFFFF#000000##FFFFFF
##5F186F1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#1F3C6D
Tritanopia (blue-blind)
#5F2A42
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f186f;
/* rgb */ color: rgb(95, 24, 111);
/* oklch */ color: oklch(36.8% 0.149 319.4);
Tailwind
colors: {
  custom: {
    50: '#905d99',
    500: '#5f186f',
    950: '#000000',
  },
}
SCSS
$custom: #5f186f;
$custom-light: #905d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5f186f",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 288.966,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36803,
    "c": 0.14924,
    "h": 319.4
  },
  "luminance": 0.04234
}

Semantic roles & 50–950 ramp

primary
#5F186F
secondary
#51A53E
accent
#E7405F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F186F

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

Preview Lab → · Contrast checker → · Palette generator →

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