#5A21BD#5A21BD

#5A21BD is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.8% C 0.218 H 290.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5A21BD
RGBrgb(90, 33, 189)
HSLhsl(262, 70%, 44%)
HSVhsv(262, 83%, 74%)
CMYKcmyk(52.4%, 82.5%, 0%, 25.9%)
CIE-LABlab(31.66, 58.28, -70.82)
CIE-LCHlch(31.66, 91.72, 309.45°)
OKLaboklab(43.77% 0.0775 -0.2036)
OKLCHoklch(43.77% 0.218 290.8)
XYZxyz(13.9430, 6.9349, 48.7381)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A21BD #84BD21
analogous
#2136BD #5A21BD #A821BD
triadic
#5A21BD #BD5A21 #21BD5A
tetradic
#5A21BD #BD2136 #84BD21 #21BDA8
square
#5A21BD #BD2136 #84BD21 #21BDA8
split-complementary
#5A21BD #BDA821 #36BD21
monochromatic
#280F55 #411889 #5A21BD #783EDD #9D72E6

Accessibility & contrast

On white

8.80
#5A21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A21BD
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A21BD#FFFFFF#000000##FFFFFF
##5A21BD1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#355171
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a21bd;
/* rgb */ color: rgb(90, 33, 189);
/* oklch */ color: oklch(43.8% 0.218 290.8);
Tailwind
colors: {
  custom: {
    50: '#9465d2',
    500: '#5a21bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a21bd;
$custom-light: #9465d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a21bd",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 261.923,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43772,
    "c": 0.21785,
    "h": 290.8
  },
  "luminance": 0.06935
}

Semantic roles & 50–950 ramp

primary
#5A21BD
secondary
#AACD6D
accent
#ED3BAC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5A21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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