#5221BC#5221BC

#5221BC is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.9% C 0.217 H 287.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5221BC
RGBrgb(82, 33, 188)
HSLhsl(259, 70%, 43%)
HSVhsv(259, 82%, 74%)
CMYKcmyk(56.4%, 82.4%, 0%, 26.3%)
CIE-LABlab(30.67, 57.10, -71.89)
CIE-LCHlch(30.67, 91.81, 308.46°)
OKLaboklab(42.86% 0.0653 -0.207)
OKLCHoklch(42.86% 0.217 287.5)
XYZxyz(13.0979, 6.5117, 48.1339)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5221BC #8BBC21
analogous
#213DBC #5221BC #9F21BC
triadic
#5221BC #BC5221 #21BC52
tetradic
#5221BC #BC213D #8BBC21 #21BC9F
square
#5221BC #BC213D #8BBC21 #21BC9F
split-complementary
#5221BC #BC9F21 #3DBC21
monochromatic
#250F54 #3B1888 #5221BC #703DDD #9671E6

Accessibility & contrast

On white

9.12
#5221BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5221BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5221BC
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5221BC#FFFFFF#000000##FFFFFF
##5221BC1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC0
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#215171
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5221bc;
/* rgb */ color: rgb(82, 33, 188);
/* oklch */ color: oklch(42.9% 0.217 287.5);
Tailwind
colors: {
  custom: {
    50: '#8f64d2',
    500: '#5221bc',
    950: '#000000',
  },
}
SCSS
$custom: #5221bc;
$custom-light: #8f64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5221bc",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 258.968,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42855,
    "c": 0.21705,
    "h": 287.5
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#5221BC
secondary
#AECD6C
accent
#ED3BB5
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5221BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5221BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva