#5D2170#5D2170

#5D2170 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.5% C 0.138 H 317.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#5D2170
RGBrgb(93, 33, 112)
HSLhsl(286, 54%, 28%)
HSVhsv(286, 71%, 44%)
CMYKcmyk(17%, 70.5%, 0%, 56.1%)
CIE-LABlab(25.52, 40.00, -33.49)
CIE-LCHlch(25.52, 52.17, 320.06°)
OKLaboklab(37.54% 0.1007 -0.094)
OKLCHoklch(37.54% 0.138 317)
XYZxyz(7.9823, 4.5850, 15.7906)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2170 #347021
analogous
#352170 #5D2170 #70215B
triadic
#5D2170 #705D21 #21705D
tetradic
#5D2170 #703521 #347021 #215B70
square
#5D2170 #703521 #347021 #215B70
split-complementary
#5D2170 #5B7021 #217035
monochromatic
#140718 #361341 #5D2170 #842F9F #A844C8

Accessibility & contrast

On white

10.95
#5D2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2170
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2170#FFFFFF#000000##FFFFFF
##5D21701.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003972
Deuteranopia (green-blind)
#223E6E
Tritanopia (blue-blind)
#5C3045
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d2170;
/* rgb */ color: rgb(93, 33, 112);
/* oklch */ color: oklch(37.5% 0.138 317.0);
Tailwind
colors: {
  custom: {
    50: '#8e6299',
    500: '#5d2170',
    950: '#000000',
  },
}
SCSS
$custom: #5d2170;
$custom-light: #8e6299;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2170",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 285.57,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37535,
    "c": 0.13775,
    "h": 317
  },
  "luminance": 0.04585
}

Semantic roles & 50–950 ramp

primary
#5D2170
secondary
#5FA449
accent
#DE4A6E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050E
muted
#7D7A7E

Preview Lab

Preview with #5D2170

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

Preview Lab → · Contrast checker → · Palette generator →

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