#5D2BAA#5D2BAA

#5D2BAA is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.188 H 295.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5D2BAA
RGBrgb(93, 43, 170)
HSLhsl(264, 60%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(45.3%, 74.7%, 0%, 33.3%)
CIE-LABlab(31.71, 49.52, -59.41)
CIE-LCHlch(31.71, 77.34, 309.81°)
OKLaboklab(43.35% 0.0804 -0.1702)
OKLCHoklch(43.35% 0.188 295.3)
XYZxyz(12.6318, 6.9569, 38.6997)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2BAA #78AA2B
analogous
#2B39AA #5D2BAA #9D2BAA
triadic
#5D2BAA #AA5D2B #2BAA5D
tetradic
#5D2BAA #AA2B39 #78AA2B #2BAA9D
square
#5D2BAA #AA2B39 #78AA2B #2BAA9D
split-complementary
#5D2BAA #AA9D2B #39AA2B
monochromatic
#281248 #421F79 #5D2BAA #7A43CF #9D74DC

Accessibility & contrast

On white

8.78
#5D2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5D2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2BAA
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2BAA#FFFFFF#000000##FFFFFF
##5D2BAA1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#474C68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2baa;
/* rgb */ color: rgb(93, 43, 170);
/* oklch */ color: oklch(43.4% 0.188 295.3);
Tailwind
colors: {
  custom: {
    50: '#9269c4',
    500: '#5d2baa',
    950: '#000000',
  },
}
SCSS
$custom: #5d2baa;
$custom-light: #9269c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2baa",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 263.622,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4335,
    "c": 0.18824,
    "h": 295.3
  },
  "luminance": 0.06957
}

Semantic roles & 50–950 ramp

primary
#5D2BAA
secondary
#A2C36E
accent
#E345A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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