#5D2AAA#5D2AAA

#5D2AAA is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.189 H 295.4°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5D2AAA
RGBrgb(93, 42, 170)
HSLhsl(264, 60%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(45.3%, 75.3%, 0%, 33.3%)
CIE-LABlab(31.54, 49.99, -59.68)
CIE-LCHlch(31.54, 77.85, 309.95°)
OKLaboklab(43.23% 0.0813 -0.171)
OKLCHoklch(43.23% 0.189 295.4)
XYZxyz(12.5959, 6.8850, 38.6877)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2AAA #77AA2A
analogous
#2A37AA #5D2AAA #9D2AAA
triadic
#5D2AAA #AA5D2A #2AAA5D
tetradic
#5D2AAA #AA2A37 #77AA2A #2AAA9D
square
#5D2AAA #AA2A37 #77AA2A #2AAA9D
split-complementary
#5D2AAA #AA9D2A #37AA2A
monochromatic
#271248 #421E79 #5D2AAA #7A41D0 #9C72DC

Accessibility & contrast

On white

8.83
#5D2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2AAA
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2AAA#FFFFFF#000000##FFFFFF
##5D2AAA1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#474C68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2aaa;
/* rgb */ color: rgb(93, 42, 170);
/* oklch */ color: oklch(43.2% 0.189 295.4);
Tailwind
colors: {
  custom: {
    50: '#9269c4',
    500: '#5d2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5d2aaa;
$custom-light: #9269c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2aaa",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 263.906,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43234,
    "c": 0.18932,
    "h": 295.4
  },
  "luminance": 0.06885
}

Semantic roles & 50–950 ramp

primary
#5D2AAA
secondary
#A1C36C
accent
#E444A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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