#5222BC#5222BC

#5222BC is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.216 H 287.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5222BC
RGBrgb(82, 34, 188)
HSLhsl(259, 69%, 44%)
HSVhsv(259, 82%, 74%)
CMYKcmyk(56.4%, 81.9%, 0%, 26.3%)
CIE-LABlab(30.80, 56.71, -71.67)
CIE-LCHlch(30.80, 91.39, 308.35°)
OKLaboklab(42.95% 0.0648 -0.2063)
OKLCHoklch(42.95% 0.216 287.4)
XYZxyz(13.1261, 6.5680, 48.1433)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5222BC #8CBC22
analogous
#223FBC #5222BC #9F22BC
triadic
#5222BC #BC5222 #22BC52
tetradic
#5222BC #BC223F #8CBC22 #22BC9F
square
#5222BC #BC223F #8CBC22 #22BC9F
split-complementary
#5222BC #BC9F22 #3FBC22
monochromatic
#250F54 #3B1988 #5222BC #703FDC #9773E6

Accessibility & contrast

On white

9.08
#5222BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5222BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5222BC
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5222BC#FFFFFF#000000##FFFFFF
##5222BC1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5222bc;
/* rgb */ color: rgb(82, 34, 188);
/* oklch */ color: oklch(42.9% 0.216 287.4);
Tailwind
colors: {
  custom: {
    50: '#8f65d2',
    500: '#5222bc',
    950: '#000000',
  },
}
SCSS
$custom: #5222bc;
$custom-light: #8f65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5222bc",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 188
  },
  "hsl": {
    "h": 258.701,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42948,
    "c": 0.21628,
    "h": 287.4
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#5222BC
secondary
#AFCD6D
accent
#EC3CB5
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5222BC

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

Preview Lab → · Contrast checker → · Palette generator →

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