#5D2DB7#5D2DB7

#5D2DB7 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.201 H 292.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5D2DB7
RGBrgb(93, 45, 183)
HSLhsl(261, 61%, 45%)
HSVhsv(261, 75%, 72%)
CMYKcmyk(49.2%, 75.4%, 0%, 28.2%)
CIE-LABlab(33.18, 52.04, -64.75)
CIE-LCHlch(33.18, 83.07, 308.79°)
OKLaboklab(44.74% 0.0754 -0.1859)
OKLCHoklch(44.74% 0.201 292.1)
XYZxyz(13.9974, 7.6223, 45.5243)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2DB7 #87B72D
analogous
#2D42B7 #5D2DB7 #A22DB7
triadic
#5D2DB7 #B75D2D #2DB75D
tetradic
#5D2DB7 #B72D42 #87B72D #2DB7A2
square
#5D2DB7 #B72D42 #87B72D #2DB7A2
split-complementary
#5D2DB7 #B7A22D #42B72D
monochromatic
#2B1555 #442186 #5D2DB7 #7C4ED3 #A17FDF

Accessibility & contrast

On white

8.32
#5D2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5D2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2DB7
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2DB7#FFFFFF#000000##FFFFFF
##5D2DB71.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#405370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d2db7;
/* rgb */ color: rgb(93, 45, 183);
/* oklch */ color: oklch(44.7% 0.201 292.1);
Tailwind
colors: {
  custom: {
    50: '#946bce',
    500: '#5d2db7',
    950: '#000000',
  },
}
SCSS
$custom: #5d2db7;
$custom-light: #946bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2db7",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 260.87,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44739,
    "c": 0.20059,
    "h": 292.1
  },
  "luminance": 0.07623
}

Semantic roles & 50–950 ramp

primary
#5D2DB7
secondary
#ACC878
accent
#E444AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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