#522099#522099

#522099 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.180 H 295.5°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#522099
RGBrgb(82, 32, 153)
HSLhsl(265, 65%, 36%)
HSVhsv(265, 79%, 60%)
CMYKcmyk(46.4%, 79.1%, 0%, 40%)
CIE-LABlab(27.09, 48.27, -56.72)
CIE-LCHlch(27.09, 74.48, 310.40°)
OKLaboklab(39.34% 0.0776 -0.1626)
OKLCHoklch(39.34% 0.18 295.5)
XYZxyz(9.7444, 5.1265, 30.6069)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522099 #679920
analogous
#202B99 #522099 #8F2099
triadic
#522099 #995220 #209952
tetradic
#522099 #99202B #679920 #20998F
square
#522099 #99202B #679920 #20998F
split-complementary
#522099 #998F20 #2B9920
monochromatic
#1C0B34 #371566 #522099 #6D2BCC #8E57DC

Accessibility & contrast

On white

10.37
#522099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522099
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522099#FFFFFF#000000##FFFFFF
##5220991.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522099;
/* rgb */ color: rgb(82, 32, 153);
/* oklch */ color: oklch(39.3% 0.180 295.5);
Tailwind
colors: {
  custom: {
    50: '#8a62b8',
    500: '#522099',
    950: '#000000',
  },
}
SCSS
$custom: #522099;
$custom-light: #8a62b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522099",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 264.793,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39344,
    "c": 0.18016,
    "h": 295.5
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#522099
secondary
#94C055
accent
#E83FA3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #522099

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

Preview Lab → · Contrast checker → · Palette generator →

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