#5A21BC#5A21BC

#5A21BC is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.7% C 0.217 H 291.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5A21BC
RGBrgb(90, 33, 188)
HSLhsl(262, 70%, 43%)
HSVhsv(262, 82%, 74%)
CMYKcmyk(52.1%, 82.4%, 0%, 26.3%)
CIE-LABlab(31.56, 58.02, -70.39)
CIE-LCHlch(31.56, 91.22, 309.50°)
OKLaboklab(43.67% 0.0778 -0.2024)
OKLCHoklch(43.67% 0.217 291)
XYZxyz(13.8348, 6.8916, 48.1685)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A21BC #83BC21
analogous
#2135BC #5A21BC #A821BC
triadic
#5A21BC #BC5A21 #21BC5A
tetradic
#5A21BC #BC2135 #83BC21 #21BCA8
square
#5A21BC #BC2135 #83BC21 #21BCA8
split-complementary
#5A21BC #BCA821 #35BC21
monochromatic
#280F54 #411888 #5A21BC #783DDD #9C71E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A21BC#FFFFFF#000000##FFFFFF
##5A21BC1.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)
#004DC0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#365071
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a21bc;
/* rgb */ color: rgb(90, 33, 188);
/* oklch */ color: oklch(43.7% 0.217 291.0);
Tailwind
colors: {
  custom: {
    50: '#9365d1',
    500: '#5a21bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a21bc;
$custom-light: #9365d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a21bc",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 262.065,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43674,
    "c": 0.21681,
    "h": 291
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#5A21BC
secondary
#A9CD6C
accent
#ED3BAB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5A21BC

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

Preview Lab → · Contrast checker → · Palette generator →

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