#522196#522196

#522196 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.176 H 296.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#522196
RGBrgb(82, 33, 150)
HSLhsl(265, 64%, 36%)
HSVhsv(265, 78%, 59%)
CMYKcmyk(45.3%, 78%, 0%, 41.2%)
CIE-LABlab(26.97, 47.04, -55.07)
CIE-LCHlch(26.97, 72.43, 310.50°)
OKLaboklab(39.17% 0.0777 -0.1578)
OKLCHoklch(39.17% 0.176 296.2)
XYZxyz(9.5271, 5.0833, 29.3275)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522196 #659621
analogous
#212B96 #522196 #8C2196
triadic
#522196 #965221 #219652
tetradic
#522196 #96212B #659621 #21968C
square
#522196 #96212B #659621 #21968C
split-complementary
#522196 #968C21 #2B9621
monochromatic
#1B0B32 #371664 #522196 #6D2CC8 #8E57DA

Accessibility & contrast

On white

10.41
#522196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522196
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522196#FFFFFF#000000##FFFFFF
##5221961.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#3F415B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522196;
/* rgb */ color: rgb(82, 33, 150);
/* oklch */ color: oklch(39.2% 0.176 296.2);
Tailwind
colors: {
  custom: {
    50: '#8a62b6',
    500: '#522196',
    950: '#000000',
  },
}
SCSS
$custom: #522196;
$custom-light: #8a62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522196",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 265.128,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39175,
    "c": 0.17585,
    "h": 296.2
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#522196
secondary
#92BE55
accent
#E741A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522196

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

Preview Lab → · Contrast checker → · Palette generator →

#522196 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva