#5220BC#5220BC

#5220BC is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.8% C 0.218 H 287.6°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5220BC
RGBrgb(82, 32, 188)
HSLhsl(259, 71%, 43%)
HSVhsv(259, 83%, 74%)
CMYKcmyk(56.4%, 83%, 0%, 26.3%)
CIE-LABlab(30.54, 57.49, -72.11)
CIE-LCHlch(30.54, 92.22, 308.56°)
OKLaboklab(42.77% 0.0659 -0.2076)
OKLCHoklch(42.77% 0.218 287.6)
XYZxyz(13.0706, 6.4570, 48.1248)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5220BC #8ABC20
analogous
#203CBC #5220BC #A020BC
triadic
#5220BC #BC5220 #20BC52
tetradic
#5220BC #BC203C #8ABC20 #20BCA0
square
#5220BC #BC203C #8ABC20 #20BCA0
split-complementary
#5220BC #BCA020 #3CBC20
monochromatic
#240E53 #3B1788 #5220BC #6F3BDE #9670E7

Accessibility & contrast

On white

9.16
#5220BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5220BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5220BC
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5220BC#FFFFFF#000000##FFFFFF
##5220BC1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5220bc;
/* rgb */ color: rgb(82, 32, 188);
/* oklch */ color: oklch(42.8% 0.218 287.6);
Tailwind
colors: {
  custom: {
    50: '#8f64d2',
    500: '#5220bc',
    950: '#000000',
  },
}
SCSS
$custom: #5220bc;
$custom-light: #8f64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5220bc",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 188
  },
  "hsl": {
    "h": 259.231,
    "s": 70.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42765,
    "c": 0.21781,
    "h": 287.6
  },
  "luminance": 0.06458
}

Semantic roles & 50–950 ramp

primary
#5220BC
secondary
#AECD6B
accent
#EE3AB4
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5220BC

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

Preview Lab → · Contrast checker → · Palette generator →

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