#5222BD#5222BD

#5222BD is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.0% C 0.217 H 287.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5222BD
RGBrgb(82, 34, 189)
HSLhsl(259, 70%, 44%)
HSVhsv(259, 82%, 74%)
CMYKcmyk(56.6%, 82%, 0%, 25.9%)
CIE-LABlab(30.91, 56.98, -72.09)
CIE-LCHlch(30.91, 91.89, 308.32°)
OKLaboklab(43.05% 0.0644 -0.2076)
OKLCHoklch(43.05% 0.217 287.2)
XYZxyz(13.2343, 6.6113, 48.7130)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5222BD #8DBD22
analogous
#223FBD #5222BD #9F22BD
triadic
#5222BD #BD5222 #22BD52
tetradic
#5222BD #BD223F #8DBD22 #22BD9F
square
#5222BD #BD223F #8DBD22 #22BD9F
split-complementary
#5222BD #BD9F22 #3FBD22
monochromatic
#250F55 #3B1989 #5222BD #7040DD #9773E6

Accessibility & contrast

On white

9.04
#5222BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5222BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5222BD
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5222BD#FFFFFF#000000##FFFFFF
##5222BD1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC1
Deuteranopia (green-blind)
#0044BA
Tritanopia (blue-blind)
#1F5271
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5222bd;
/* rgb */ color: rgb(82, 34, 189);
/* oklch */ color: oklch(43.0% 0.217 287.2);
Tailwind
colors: {
  custom: {
    50: '#8f65d2',
    500: '#5222bd',
    950: '#000000',
  },
}
SCSS
$custom: #5222bd;
$custom-light: #8f65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5222bd",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 258.581,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43049,
    "c": 0.21735,
    "h": 287.2
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#5222BD
secondary
#AFCD6E
accent
#EC3BB6
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5222BD

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

Preview Lab → · Contrast checker → · Palette generator →

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