#5D2176#5D2176

#5D2176 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.0% C 0.144 H 314.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5D2176
RGBrgb(93, 33, 118)
HSLhsl(282, 56%, 30%)
HSVhsv(282, 72%, 46%)
CMYKcmyk(21.2%, 72%, 0%, 53.7%)
CIE-LABlab(25.93, 41.34, -36.67)
CIE-LCHlch(25.93, 55.26, 318.42°)
OKLaboklab(37.96% 0.1002 -0.1033)
OKLCHoklch(37.96% 0.144 314.1)
XYZxyz(8.3275, 4.7231, 17.6090)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2176 #3A7621
analogous
#332176 #5D2176 #762165
triadic
#5D2176 #765D21 #21765D
tetradic
#5D2176 #763321 #3A7621 #216576
square
#5D2176 #763321 #3A7621 #216576
split-complementary
#5D2176 #657621 #217633
monochromatic
#130718 #371446 #5D2176 #832EA6 #A446CB

Accessibility & contrast

On white

10.80
#5D2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2176
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2176#FFFFFF#000000##FFFFFF
##5D21761.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#1D3F74
Tritanopia (blue-blind)
#5B3249
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d2176;
/* rgb */ color: rgb(93, 33, 118);
/* oklch */ color: oklch(38.0% 0.144 314.1);
Tailwind
colors: {
  custom: {
    50: '#8e629e',
    500: '#5d2176',
    950: '#000000',
  },
}
SCSS
$custom: #5d2176;
$custom-light: #8e629e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2176",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 282.353,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37962,
    "c": 0.14395,
    "h": 314.1
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#5D2176
secondary
#66A94A
accent
#E04875
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5D2176

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

Preview Lab → · Contrast checker → · Palette generator →

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