#5D2DB8#5D2DB8

#5D2DB8 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.202 H 291.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#5D2DB8
RGBrgb(93, 45, 184)
HSLhsl(261, 61%, 45%)
HSVhsv(261, 76%, 72%)
CMYKcmyk(49.5%, 75.5%, 0%, 27.8%)
CIE-LABlab(33.27, 52.31, -65.20)
CIE-LCHlch(33.27, 83.59, 308.74°)
OKLaboklab(44.83% 0.0752 -0.1872)
OKLCHoklch(44.83% 0.202 291.9)
XYZxyz(14.1019, 7.6641, 46.0744)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2DB8 #88B82D
analogous
#2D43B8 #5D2DB8 #A22DB8
triadic
#5D2DB8 #B85D2D #2DB85D
tetradic
#5D2DB8 #B82D43 #88B82D #2DB8A2
square
#5D2DB8 #B82D43 #88B82D #2DB8A2
split-complementary
#5D2DB8 #B8A22D #43B82D
monochromatic
#2B1556 #442187 #5D2DB8 #7C4ED4 #A180E0

Accessibility & contrast

On white

8.29
#5D2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5D2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2DB8
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2DB8#FFFFFF#000000##FFFFFF
##5D2DB81.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#3F5371
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d2db8;
/* rgb */ color: rgb(93, 45, 184);
/* oklch */ color: oklch(44.8% 0.202 291.9);
Tailwind
colors: {
  custom: {
    50: '#946bce',
    500: '#5d2db8',
    950: '#000000',
  },
}
SCSS
$custom: #5d2db8;
$custom-light: #946bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2db8",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 260.719,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44829,
    "c": 0.2017,
    "h": 291.9
  },
  "luminance": 0.07665
}

Semantic roles & 50–950 ramp

primary
#5D2DB8
secondary
#ADC978
accent
#E444AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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