#5D2184#5D2184

#5D2184 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.159 H 308.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#5D2184
RGBrgb(93, 33, 132)
HSLhsl(276, 60%, 32%)
HSVhsv(276, 75%, 52%)
CMYKcmyk(29.5%, 75%, 0%, 48.2%)
CIE-LABlab(26.96, 44.57, -43.85)
CIE-LCHlch(26.96, 62.52, 315.46°)
OKLaboklab(39.03% 0.0983 -0.1244)
OKLCHoklch(39.03% 0.159 308.3)
XYZxyz(9.2221, 5.0810, 22.3202)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2184 #488421
analogous
#2C2184 #5D2184 #842179
triadic
#5D2184 #845D21 #21845D
tetradic
#5D2184 #842C21 #488421 #217984
square
#5D2184 #842C21 #488421 #217984
split-complementary
#5D2184 #798421 #21842C
monochromatic
#180922 #3B1553 #5D2184 #7F2DB5 #9E4DD2

Accessibility & contrast

On white

10.42
#5D2184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5D2184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2184
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2184#FFFFFF#000000##FFFFFF
##5D21841.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#024082
Tritanopia (blue-blind)
#573850
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d2184;
/* rgb */ color: rgb(93, 33, 132);
/* oklch */ color: oklch(39.0% 0.159 308.3);
Tailwind
colors: {
  custom: {
    50: '#8f62a8',
    500: '#5d2184',
    950: '#000000',
  },
}
SCSS
$custom: #5d2184;
$custom-light: #8f62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2184",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 276.364,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39025,
    "c": 0.15856,
    "h": 308.3
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#5D2184
secondary
#75B64B
accent
#E34583
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D2184

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

Preview Lab → · Contrast checker → · Palette generator →

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