#5D1866#5D1866

#5D1866 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.140 H 322.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#5D1866
RGBrgb(93, 24, 102)
HSLhsl(293, 62%, 25%)
HSVhsv(293, 76%, 40%)
CMYKcmyk(8.8%, 76.5%, 0%, 60%)
CIE-LABlab(23.47, 41.80, -30.29)
CIE-LCHlch(23.47, 51.62, 324.07°)
OKLaboklab(35.86% 0.1116 -0.0846)
OKLCHoklch(35.86% 0.14 322.8)
XYZxyz(7.2389, 3.9402, 12.9470)
Luminance0.0394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1866 #216618
analogous
#361866 #5D1866 #661848
triadic
#5D1866 #665D18 #18665D
tetradic
#5D1866 #663618 #216618 #184866
square
#5D1866 #663618 #216618 #184866
split-complementary
#5D1866 #486618 #186636
monochromatic
#170619 #300C34 #5D1866 #8A2498 #B72FC9

Accessibility & contrast

On white

11.74
#5D1866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5D1866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1866
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1866#FFFFFF#000000##FFFFFF
##5D18661.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#243B64
Tritanopia (blue-blind)
#5E263D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1866;
/* rgb */ color: rgb(93, 24, 102);
/* oklch */ color: oklch(35.9% 0.140 322.8);
Tailwind
colors: {
  custom: {
    50: '#8e5d92',
    500: '#5d1866',
    950: '#000000',
  },
}
SCSS
$custom: #5d1866;
$custom-light: #8e5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1866",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 293.077,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35856,
    "c": 0.13999,
    "h": 322.8
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#5D1866
secondary
#499C3E
accent
#E54356
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5D1866

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

Preview Lab → · Contrast checker → · Palette generator →

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