#5F186E#5F186E

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

Color values

HEX#5F186E
RGBrgb(95, 24, 110)
HSLhsl(290, 64%, 26%)
HSVhsv(290, 78%, 43%)
CMYKcmyk(13.6%, 78.2%, 0%, 56.9%)
CIE-LABlab(24.36, 43.87, -34.04)
CIE-LCHlch(24.36, 55.53, 322.19°)
OKLaboklab(36.73% 0.1135 -0.0955)
OKLCHoklch(36.73% 0.148 319.9)
XYZxyz(7.8601, 4.2124, 15.1479)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F186E #276E18
analogous
#34186E #5F186E #6E1852
triadic
#5F186E #6E5F18 #186E5F
tetradic
#5F186E #6E3418 #276E18 #18526E
square
#5F186E #6E3418 #276E18 #18526E
split-complementary
#5F186E #526E18 #186E34
monochromatic
#160519 #340D3C #5F186E #8A23A0 #B52FD2

Accessibility & contrast

On white

11.40
#5F186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F186E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F186E#FFFFFF#000000##FFFFFF
##5F186E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#203C6C
Tritanopia (blue-blind)
#5F2942
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f186e;
/* rgb */ color: rgb(95, 24, 110);
/* oklch */ color: oklch(36.7% 0.148 319.9);
Tailwind
colors: {
  custom: {
    50: '#905d98',
    500: '#5f186e',
    950: '#000000',
  },
}
SCSS
$custom: #5f186e;
$custom-light: #905d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5f186e",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 289.535,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36731,
    "c": 0.14831,
    "h": 319.9
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#5F186E
secondary
#50A43E
accent
#E7415E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F186E

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

Preview Lab → · Contrast checker → · Palette generator →

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