#5D1868#5D1868

#5D1868 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.142 H 321.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5D1868
RGBrgb(93, 24, 104)
HSLhsl(292, 63%, 25%)
HSVhsv(292, 77%, 41%)
CMYKcmyk(10.6%, 76.9%, 0%, 59.2%)
CIE-LABlab(23.61, 42.20, -31.38)
CIE-LCHlch(23.61, 52.59, 323.36°)
OKLaboklab(35.99% 0.1114 -0.0877)
OKLCHoklch(35.99% 0.142 321.8)
XYZxyz(7.3393, 3.9803, 13.4757)
Luminance0.0398 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1868 #236818
analogous
#351868 #5D1868 #68184B
triadic
#5D1868 #685D18 #18685D
tetradic
#5D1868 #683518 #236818 #184B68
square
#5D1868 #683518 #236818 #184B68
split-complementary
#5D1868 #4B6818 #186835
monochromatic
#160619 #310D36 #5D1868 #89239A #B62FCB

Accessibility & contrast

On white

11.69
#5D1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5D1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1868
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1868#FFFFFF#000000##FFFFFF
##5D18681.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#233B66
Tritanopia (blue-blind)
#5E273E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1868;
/* rgb */ color: rgb(93, 24, 104);
/* oklch */ color: oklch(36.0% 0.142 321.8);
Tailwind
colors: {
  custom: {
    50: '#8e5d93',
    500: '#5d1868',
    950: '#000000',
  },
}
SCSS
$custom: #5d1868;
$custom-light: #8e5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1868",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 291.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.14184,
    "h": 321.8
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#5D1868
secondary
#4B9E3E
accent
#E64259
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5D1868

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

Preview Lab → · Contrast checker → · Palette generator →

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