#5B21AA#5B21AA

#5B21AA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.198 H 295.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5B21AA
RGBrgb(91, 33, 170)
HSLhsl(265, 67%, 40%)
HSVhsv(265, 81%, 67%)
CMYKcmyk(46.5%, 80.6%, 0%, 33.3%)
CIE-LABlab(29.95, 53.57, -62.31)
CIE-LCHlch(29.95, 82.17, 310.69°)
OKLaboklab(42.06% 0.0855 -0.1787)
OKLCHoklch(42.06% 0.198 295.6)
XYZxyz(12.1120, 6.2138, 38.5837)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B21AA #70AA21
analogous
#212CAA #5B21AA #9F21AA
triadic
#5B21AA #AA5B21 #21AA5B
tetradic
#5B21AA #AA212C #70AA21 #21AA9F
square
#5B21AA #AA212C #70AA21 #21AA9F
split-complementary
#5B21AA #AA9F21 #2CAA21
monochromatic
#240D43 #401777 #5B21AA #7731D7 #9964E1

Accessibility & contrast

On white

9.36
#5B21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5B21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B21AA
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B21AA#FFFFFF#000000##FFFFFF
##5B21AA1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#444866
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b21aa;
/* rgb */ color: rgb(91, 33, 170);
/* oklch */ color: oklch(42.1% 0.198 295.6);
Tailwind
colors: {
  custom: {
    50: '#9264c4',
    500: '#5b21aa',
    950: '#000000',
  },
}
SCSS
$custom: #5b21aa;
$custom-light: #9264c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b21aa",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 265.401,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42062,
    "c": 0.19807,
    "h": 295.6
  },
  "luminance": 0.06214
}

Semantic roles & 50–950 ramp

primary
#5B21AA
secondary
#9BC661
accent
#EA3DA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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