#5B21BD#5B21BD

#5B21BD is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.9% C 0.218 H 291.3°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5B21BD
RGBrgb(91, 33, 189)
HSLhsl(262, 70%, 44%)
HSVhsv(262, 83%, 74%)
CMYKcmyk(51.9%, 82.5%, 0%, 25.9%)
CIE-LABlab(31.77, 58.39, -70.63)
CIE-LCHlch(31.77, 91.64, 309.58°)
OKLaboklab(43.88% 0.079 -0.203)
OKLCHoklch(43.88% 0.218 291.3)
XYZxyz(14.0409, 6.9854, 48.7427)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B21BD #83BD21
analogous
#2135BD #5B21BD #A921BD
triadic
#5B21BD #BD5B21 #21BD5B
tetradic
#5B21BD #BD2135 #83BD21 #21BDA9
square
#5B21BD #BD2135 #83BD21 #21BDA9
split-complementary
#5B21BD #BDA921 #35BD21
monochromatic
#290F55 #421889 #5B21BD #793EDD #9D72E6

Accessibility & contrast

On white

8.76
#5B21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5B21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B21BD
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B21BD#FFFFFF#000000##FFFFFF
##5B21BD1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b21bd;
/* rgb */ color: rgb(91, 33, 189);
/* oklch */ color: oklch(43.9% 0.218 291.3);
Tailwind
colors: {
  custom: {
    50: '#9465d2',
    500: '#5b21bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b21bd;
$custom-light: #9465d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b21bd",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 262.308,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43878,
    "c": 0.21785,
    "h": 291.3
  },
  "luminance": 0.06986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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