#5D1870#5D1870

#5D1870 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.149 H 317.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5D1870
RGBrgb(93, 24, 112)
HSLhsl(287, 65%, 27%)
HSVhsv(287, 79%, 44%)
CMYKcmyk(17%, 78.6%, 0%, 56.1%)
CIE-LABlab(24.16, 43.84, -35.67)
CIE-LCHlch(24.16, 56.52, 320.87°)
OKLaboklab(36.57% 0.1106 -0.1003)
OKLCHoklch(36.57% 0.149 317.8)
XYZxyz(7.7650, 4.1506, 15.7182)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1870 #2B7018
analogous
#311870 #5D1870 #701857
triadic
#5D1870 #705D18 #18705D
tetradic
#5D1870 #703118 #2B7018 #185770
square
#5D1870 #703118 #2B7018 #185770
split-complementary
#5D1870 #577018 #187031
monochromatic
#150519 #330D3E #5D1870 #8723A2 #AF30D3

Accessibility & contrast

On white

11.48
#5D1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5D1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1870
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1870#FFFFFF#000000##FFFFFF
##5D18701.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#1B3C6E
Tritanopia (blue-blind)
#5C2B43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d1870;
/* rgb */ color: rgb(93, 24, 112);
/* oklch */ color: oklch(36.6% 0.149 317.8);
Tailwind
colors: {
  custom: {
    50: '#8e5d9a',
    500: '#5d1870',
    950: '#000000',
  },
}
SCSS
$custom: #5d1870;
$custom-light: #8e5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1870",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 287.045,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36568,
    "c": 0.14934,
    "h": 317.8
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#5D1870
secondary
#55A53E
accent
#E84064
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1870

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

Preview Lab → · Contrast checker → · Palette generator →

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