#5222AF#5222AF

#5222AF is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.7% C 0.202 H 290.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5222AF
RGBrgb(82, 34, 175)
HSLhsl(260, 67%, 41%)
HSVhsv(260, 81%, 69%)
CMYKcmyk(53.1%, 80.6%, 0%, 31.4%)
CIE-LABlab(29.49, 53.25, -66.09)
CIE-LCHlch(29.49, 84.87, 308.86°)
OKLaboklab(41.65% 0.0692 -0.19)
OKLCHoklch(41.65% 0.202 290)
XYZxyz(11.7873, 6.0325, 41.0924)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5222AF #7FAF22
analogous
#2238AF #5222AF #9822AF
triadic
#5222AF #AF5222 #22AF52
tetradic
#5222AF #AF2238 #7FAF22 #22AF98
square
#5222AF #AF2238 #7FAF22 #22AF98
split-complementary
#5222AF #AF9822 #38AF22
monochromatic
#220E49 #3A187C #5222AF #6D36D8 #9269E2

Accessibility & contrast

On white

9.52
#5222AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5222AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5222AF
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5222AF#FFFFFF#000000##FFFFFF
##5222AF1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#2F4C69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5222af;
/* rgb */ color: rgb(82, 34, 175);
/* oklch */ color: oklch(41.7% 0.202 290.0);
Tailwind
colors: {
  custom: {
    50: '#8d64c8',
    500: '#5222af',
    950: '#000000',
  },
}
SCSS
$custom: #5222af;
$custom-light: #8d64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5222af",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 260.426,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41652,
    "c": 0.20225,
    "h": 290
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#5222AF
secondary
#A6C865
accent
#EA3DAF
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5222AF

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

Preview Lab → · Contrast checker → · Palette generator →

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