#522699#522699

#522699 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.174 H 294.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#522699
RGBrgb(82, 38, 153)
HSLhsl(263, 60%, 37%)
HSVhsv(263, 75%, 60%)
CMYKcmyk(46.4%, 75.2%, 0%, 40%)
CIE-LABlab(28.06, 45.51, -55.13)
CIE-LCHlch(28.06, 71.49, 309.54°)
OKLaboklab(40.02% 0.0725 -0.158)
OKLCHoklch(40.02% 0.174 294.6)
XYZxyz(9.9210, 5.4797, 30.6658)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522699 #6D9926
analogous
#263399 #522699 #8C2699
triadic
#522699 #995226 #269952
tetradic
#522699 #992633 #6D9926 #26998C
square
#522699 #992633 #6D9926 #26998C
split-complementary
#522699 #998C26 #339926
monochromatic
#1D0E37 #381A68 #522699 #6C32CA #8F62D8

Accessibility & contrast

On white

10.02
#522699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522699
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522699#FFFFFF#000000##FFFFFF
##5226991.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#3E445D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522699;
/* rgb */ color: rgb(82, 38, 153);
/* oklch */ color: oklch(40.0% 0.174 294.6);
Tailwind
colors: {
  custom: {
    50: '#8a65b8',
    500: '#522699',
    950: '#000000',
  },
}
SCSS
$custom: #522699;
$custom-light: #8a65b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522699",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 262.957,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40022,
    "c": 0.17382,
    "h": 294.6
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#522699
secondary
#99BD5E
accent
#E344A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522699

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

Preview Lab → · Contrast checker → · Palette generator →

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