#5D2CA6#5D2CA6

#5D2CA6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.183 H 296.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5D2CA6
RGBrgb(93, 44, 166)
HSLhsl(264, 58%, 41%)
HSVhsv(264, 73%, 65%)
CMYKcmyk(44%, 73.5%, 0%, 34.9%)
CIE-LABlab(31.54, 47.98, -57.29)
CIE-LCHlch(31.54, 74.73, 309.95°)
OKLaboklab(43.12% 0.0804 -0.164)
OKLCHoklch(43.12% 0.183 296.1)
XYZxyz(12.2960, 6.8814, 36.7494)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2CA6 #75A62C
analogous
#2C38A6 #5D2CA6 #9A2CA6
triadic
#5D2CA6 #A65D2C #2CA65D
tetradic
#5D2CA6 #A62C38 #75A62C #2CA69A
square
#5D2CA6 #A62C38 #75A62C #2CA69A
split-complementary
#5D2CA6 #A69A2C #38A62C
monochromatic
#271245 #421F76 #5D2CA6 #7A42CD #9C73DA

Accessibility & contrast

On white

8.84
#5D2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5D2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2CA6
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2CA6#FFFFFF#000000##FFFFFF
##5D2CA61.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#494B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ca6;
/* rgb */ color: rgb(93, 44, 166);
/* oklch */ color: oklch(43.1% 0.183 296.1);
Tailwind
colors: {
  custom: {
    50: '#926ac1',
    500: '#5d2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ca6;
$custom-light: #926ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ca6",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 264.098,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43122,
    "c": 0.18263,
    "h": 296.1
  },
  "luminance": 0.06882
}

Semantic roles & 50–950 ramp

primary
#5D2CA6
secondary
#9FC16D
accent
#E146A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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