#5D186E#5D186E

#5D186E is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.147 H 318.8°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#5D186E
RGBrgb(93, 24, 110)
HSLhsl(288, 64%, 26%)
HSVhsv(288, 78%, 43%)
CMYKcmyk(15.5%, 78.2%, 0%, 56.9%)
CIE-LABlab(24.02, 43.42, -34.61)
CIE-LCHlch(24.02, 55.53, 321.44°)
OKLaboklab(36.42% 0.1109 -0.0972)
OKLCHoklch(36.42% 0.147 318.8)
XYZxyz(7.6549, 4.1066, 15.1383)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D186E #296E18
analogous
#32186E #5D186E #6E1854
triadic
#5D186E #6E5D18 #186E5D
tetradic
#5D186E #6E3218 #296E18 #18546E
square
#5D186E #6E3218 #296E18 #18546E
split-complementary
#5D186E #546E18 #186E32
monochromatic
#150519 #330D3C #5D186E #8723A0 #B12FD2

Accessibility & contrast

On white

11.53
#5D186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5D186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D186E
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D186E#FFFFFF#000000##FFFFFF
##5D186E1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#1D3B6C
Tritanopia (blue-blind)
#5D2A42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d186e;
/* rgb */ color: rgb(93, 24, 110);
/* oklch */ color: oklch(36.4% 0.147 318.8);
Tailwind
colors: {
  custom: {
    50: '#8e5d98',
    500: '#5d186e',
    950: '#000000',
  },
}
SCSS
$custom: #5d186e;
$custom-light: #8e5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5d186e",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 288.14,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36421,
    "c": 0.14745,
    "h": 318.8
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#5D186E
secondary
#52A43E
accent
#E74162
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D186E

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

Preview Lab → · Contrast checker → · Palette generator →

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