#5D2AAB#5D2AAB

#5D2AAB is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.190 H 295.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5D2AAB
RGBrgb(93, 42, 171)
HSLhsl(264, 61%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(45.6%, 75.4%, 0%, 32.9%)
CIE-LABlab(31.63, 50.25, -60.14)
CIE-LCHlch(31.63, 78.37, 309.88°)
OKLaboklab(43.32% 0.0811 -0.1723)
OKLCHoklch(43.32% 0.19 295.2)
XYZxyz(12.6909, 6.9230, 39.1878)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2AAB #78AB2A
analogous
#2A38AB #5D2AAB #9E2AAB
triadic
#5D2AAB #AB5D2A #2AAB5D
tetradic
#5D2AAB #AB2A38 #78AB2A #2AAB9E
square
#5D2AAB #AB2A38 #78AB2A #2AAB9E
split-complementary
#5D2AAB #AB9E2A #38AB2A
monochromatic
#281249 #421E7A #5D2AAB #7A42D1 #9D73DD

Accessibility & contrast

On white

8.81
#5D2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2AAB
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2AAB#FFFFFF#000000##FFFFFF
##5D2AAB1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#474C69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2aab;
/* rgb */ color: rgb(93, 42, 171);
/* oklch */ color: oklch(43.3% 0.190 295.2);
Tailwind
colors: {
  custom: {
    50: '#9269c5',
    500: '#5d2aab',
    950: '#000000',
  },
}
SCSS
$custom: #5d2aab;
$custom-light: #9269c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2aab",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 263.721,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43322,
    "c": 0.19043,
    "h": 295.2
  },
  "luminance": 0.06923
}

Semantic roles & 50–950 ramp

primary
#5D2AAB
secondary
#A2C46D
accent
#E444A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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