#522199#522199

#522199 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.179 H 295.4°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#522199
RGBrgb(82, 33, 153)
HSLhsl(265, 65%, 36%)
HSVhsv(265, 78%, 60%)
CMYKcmyk(46.4%, 78.4%, 0%, 40%)
CIE-LABlab(27.24, 47.83, -56.47)
CIE-LCHlch(27.24, 74.00, 310.27°)
OKLaboklab(39.45% 0.0768 -0.1618)
OKLCHoklch(39.45% 0.179 295.4)
XYZxyz(9.7717, 5.1812, 30.6160)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522199 #689921
analogous
#212C99 #522199 #8E2199
triadic
#522199 #995221 #219952
tetradic
#522199 #99212C #689921 #21998E
square
#522199 #99212C #689921 #21998E
split-complementary
#522199 #998E21 #2C9921
monochromatic
#1C0B34 #371667 #522199 #6D2CCB #8E59DB

Accessibility & contrast

On white

10.31
#522199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522199
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522199#FFFFFF#000000##FFFFFF
##5221991.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#3E425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522199;
/* rgb */ color: rgb(82, 33, 153);
/* oklch */ color: oklch(39.5% 0.179 295.4);
Tailwind
colors: {
  custom: {
    50: '#8a62b8',
    500: '#522199',
    950: '#000000',
  },
}
SCSS
$custom: #522199;
$custom-light: #8a62b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522199",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 264.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3945,
    "c": 0.17915,
    "h": 295.4
  },
  "luminance": 0.05181
}

Semantic roles & 50–950 ramp

primary
#522199
secondary
#95BF56
accent
#E840A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #522199

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

Preview Lab → · Contrast checker → · Palette generator →

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