#5D2172#5D2172

#5D2172 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.7% C 0.140 H 316.0°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5D2172
RGBrgb(93, 33, 114)
HSLhsl(284, 55%, 29%)
HSVhsv(284, 71%, 45%)
CMYKcmyk(18.4%, 71.1%, 0%, 55.3%)
CIE-LABlab(25.65, 40.44, -34.56)
CIE-LCHlch(25.65, 53.20, 319.48°)
OKLaboklab(37.67% 0.1006 -0.0971)
OKLCHoklch(37.67% 0.14 316)
XYZxyz(8.0948, 4.6301, 16.3836)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2172 #367221
analogous
#352172 #5D2172 #72215F
triadic
#5D2172 #725D21 #21725D
tetradic
#5D2172 #723521 #367221 #215F72
square
#5D2172 #723521 #367221 #215F72
split-complementary
#5D2172 #5F7221 #217235
monochromatic
#130718 #361343 #5D2172 #842FA1 #A744C9

Accessibility & contrast

On white

10.90
#5D2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2172
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2172#FFFFFF#000000##FFFFFF
##5D21721.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#213E70
Tritanopia (blue-blind)
#5C3147
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d2172;
/* rgb */ color: rgb(93, 33, 114);
/* oklch */ color: oklch(37.7% 0.140 316.0);
Tailwind
colors: {
  custom: {
    50: '#8e629b',
    500: '#5d2172',
    950: '#000000',
  },
}
SCSS
$custom: #5d2172;
$custom-light: #8e629b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2172",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 284.444,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37675,
    "c": 0.13981,
    "h": 316
  },
  "luminance": 0.0463
}

Semantic roles & 50–950 ramp

primary
#5D2172
secondary
#61A549
accent
#DE4970
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050E
muted
#7D7A7E

Preview Lab

Preview with #5D2172

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

Preview Lab → · Contrast checker → · Palette generator →

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