#522899#522899

#522899 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.172 H 294.3°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#522899
RGBrgb(82, 40, 153)
HSLhsl(262, 59%, 38%)
HSVhsv(262, 74%, 60%)
CMYKcmyk(46.4%, 73.9%, 0%, 40%)
CIE-LABlab(28.41, 44.52, -54.56)
CIE-LCHlch(28.41, 70.42, 309.21°)
OKLaboklab(40.27% 0.0707 -0.1563)
OKLCHoklch(40.27% 0.172 294.3)
XYZxyz(9.9867, 5.6110, 30.6877)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522899 #6F9928
analogous
#283699 #522899 #8A2899
triadic
#522899 #995228 #289952
tetradic
#522899 #992836 #6F9928 #28998A
square
#522899 #992836 #6F9928 #28998A
split-complementary
#522899 #998A28 #369928
monochromatic
#1E0F38 #381B68 #522899 #6C35CA #8F65D7

Accessibility & contrast

On white

9.90
#522899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#522899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522899
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522899#FFFFFF#000000##FFFFFF
##5228991.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#3D455E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522899;
/* rgb */ color: rgb(82, 40, 153);
/* oklch */ color: oklch(40.3% 0.172 294.3);
Tailwind
colors: {
  custom: {
    50: '#8a66b8',
    500: '#522899',
    950: '#000000',
  },
}
SCSS
$custom: #522899;
$custom-light: #8a66b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522899",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 262.301,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40269,
    "c": 0.17153,
    "h": 294.3
  },
  "luminance": 0.05611
}

Semantic roles & 50–950 ramp

primary
#522899
secondary
#9ABD60
accent
#E246A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522899

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

Preview Lab → · Contrast checker → · Palette generator →

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