#5D1370#5D1370

#5D1370 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.155 H 318.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#5D1370
RGBrgb(93, 19, 112)
HSLhsl(288, 71%, 26%)
HSVhsv(288, 83%, 44%)
CMYKcmyk(17%, 83%, 0%, 56.1%)
CIE-LABlab(23.55, 45.61, -36.66)
CIE-LCHlch(23.55, 58.52, 321.21°)
OKLaboklab(36.13% 0.1152 -0.1032)
OKLCHoklch(36.13% 0.155 318.2)
XYZxyz(7.6713, 3.9631, 15.6870)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1370 #267013
analogous
#2E1370 #5D1370 #701354
triadic
#5D1370 #705D13 #13705D
tetradic
#5D1370 #702E13 #267013 #135470
square
#5D1370 #702E13 #267013 #135470
split-complementary
#5D1370 #547013 #13702E
monochromatic
#16041A #320A3C #5D1370 #881CA4 #B425D9

Accessibility & contrast

On white

11.71
#5D1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1370
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1370#FFFFFF#000000##FFFFFF
##5D13701.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#183A6E
Tritanopia (blue-blind)
#5C2842
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1370;
/* rgb */ color: rgb(93, 19, 112);
/* oklch */ color: oklch(36.1% 0.155 318.2);
Tailwind
colors: {
  custom: {
    50: '#8e5b9a',
    500: '#5d1370',
    950: '#000000',
  },
}
SCSS
$custom: #5d1370;
$custom-light: #8e5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1370",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 287.742,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36134,
    "c": 0.15465,
    "h": 318.2
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#5D1370
secondary
#4FA738
accent
#EE3A5F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1370

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

Preview Lab → · Contrast checker → · Palette generator →

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