#5B21BC#5B21BC

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

Color values

HEX#5B21BC
RGBrgb(91, 33, 188)
HSLhsl(262, 70%, 43%)
HSVhsv(262, 82%, 74%)
CMYKcmyk(51.6%, 82.4%, 0%, 26.3%)
CIE-LABlab(31.67, 58.14, -70.20)
CIE-LCHlch(31.67, 91.15, 309.63°)
OKLaboklab(43.78% 0.0794 -0.2018)
OKLCHoklch(43.78% 0.217 291.5)
XYZxyz(13.9328, 6.9421, 48.1730)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B21BC #82BC21
analogous
#2134BC #5B21BC #A821BC
triadic
#5B21BC #BC5B21 #21BC5B
tetradic
#5B21BC #BC2134 #82BC21 #21BCA8
square
#5B21BC #BC2134 #82BC21 #21BCA8
split-complementary
#5B21BC #BCA821 #34BC21
monochromatic
#290F54 #421888 #5B21BC #793DDD #9D71E6

Accessibility & contrast

On white

8.79
#5B21BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B21BC
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B21BC#FFFFFF#000000##FFFFFF
##5B21BC1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#395071
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b21bc;
/* rgb */ color: rgb(91, 33, 188);
/* oklch */ color: oklch(43.8% 0.217 291.5);
Tailwind
colors: {
  custom: {
    50: '#9465d1',
    500: '#5b21bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b21bc;
$custom-light: #9465d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b21bc",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 262.452,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4378,
    "c": 0.21681,
    "h": 291.5
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B21BC

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

Preview Lab → · Contrast checker → · Palette generator →

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