#5C21AA#5C21AA

#5C21AA is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.198 H 296.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5C21AA
RGBrgb(92, 33, 170)
HSLhsl(266, 67%, 40%)
HSVhsv(266, 81%, 67%)
CMYKcmyk(45.9%, 80.6%, 0%, 33.3%)
CIE-LABlab(30.07, 53.71, -62.10)
CIE-LCHlch(30.07, 82.11, 310.86°)
OKLaboklab(42.18% 0.087 -0.178)
OKLCHoklch(42.18% 0.198 296.1)
XYZxyz(12.2112, 6.2650, 38.5883)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C21AA #6FAA21
analogous
#212BAA #5C21AA #A021AA
triadic
#5C21AA #AA5C21 #21AA5C
tetradic
#5C21AA #AA212B #6FAA21 #21AAA0
square
#5C21AA #AA212B #6FAA21 #21AAA0
split-complementary
#5C21AA #AAA021 #2BAA21
monochromatic
#250D43 #401777 #5C21AA #7931D7 #9A64E1

Accessibility & contrast

On white

9.32
#5C21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5C21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C21AA
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C21AA#FFFFFF#000000##FFFFFF
##5C21AA1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#464866
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c21aa;
/* rgb */ color: rgb(92, 33, 170);
/* oklch */ color: oklch(42.2% 0.198 296.1);
Tailwind
colors: {
  custom: {
    50: '#9264c4',
    500: '#5c21aa',
    950: '#000000',
  },
}
SCSS
$custom: #5c21aa;
$custom-light: #9264c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c21aa",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 265.839,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42178,
    "c": 0.19815,
    "h": 296.1
  },
  "luminance": 0.06265
}

Semantic roles & 50–950 ramp

primary
#5C21AA
secondary
#9AC661
accent
#EA3DA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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