#5F186D#5F186D

#5F186D is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.147 H 320.4°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5F186D
RGBrgb(95, 24, 109)
HSLhsl(290, 64%, 26%)
HSVhsv(290, 78%, 43%)
CMYKcmyk(12.8%, 78%, 0%, 57.3%)
CIE-LABlab(24.29, 43.66, -33.51)
CIE-LCHlch(24.29, 55.04, 322.50°)
OKLaboklab(36.66% 0.1136 -0.0939)
OKLCHoklch(36.66% 0.147 320.4)
XYZxyz(7.8059, 4.1907, 14.8628)
Luminance0.0419 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F186D #266D18
analogous
#34186D #5F186D #6D1850
triadic
#5F186D #6D5F18 #186D5F
tetradic
#5F186D #6D3418 #266D18 #18506D
square
#5F186D #6D3418 #266D18 #18506D
split-complementary
#5F186D #506D18 #186D34
monochromatic
#160619 #330D3B #5F186D #8B239F #B62ED1

Accessibility & contrast

On white

11.43
#5F186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F186D
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F186D#FFFFFF#000000##FFFFFF
##5F186D1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#213C6B
Tritanopia (blue-blind)
#5F2941
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f186d;
/* rgb */ color: rgb(95, 24, 109);
/* oklch */ color: oklch(36.7% 0.147 320.4);
Tailwind
colors: {
  custom: {
    50: '#905d97',
    500: '#5f186d',
    950: '#000000',
  },
}
SCSS
$custom: #5f186d;
$custom-light: #905d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5f186d",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 290.118,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3666,
    "c": 0.14739,
    "h": 320.4
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#5F186D
secondary
#4FA33E
accent
#E7415C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F186D

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

Preview Lab → · Contrast checker → · Palette generator →

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