#522299#522299

#522299 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.178 H 295.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#522299
RGBrgb(82, 34, 153)
HSLhsl(264, 64%, 37%)
HSVhsv(264, 78%, 60%)
CMYKcmyk(46.4%, 77.8%, 0%, 40%)
CIE-LABlab(27.40, 47.38, -56.21)
CIE-LCHlch(27.40, 73.52, 310.13°)
OKLaboklab(39.56% 0.076 -0.1611)
OKLCHoklch(39.56% 0.178 295.2)
XYZxyz(9.7999, 5.2375, 30.6254)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522299 #699922
analogous
#222E99 #522299 #8E2299
triadic
#522299 #995222 #229952
tetradic
#522299 #99222E #699922 #22998E
square
#522299 #99222E #699922 #22998E
split-complementary
#522299 #998E22 #2E9922
monochromatic
#1C0C35 #371767 #522299 #6D2DCB #8E5BDB

Accessibility & contrast

On white

10.26
#522299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522299
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522299#FFFFFF#000000##FFFFFF
##5222991.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#3E425D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522299;
/* rgb */ color: rgb(82, 34, 153);
/* oklch */ color: oklch(39.6% 0.178 295.2);
Tailwind
colors: {
  custom: {
    50: '#8a63b8',
    500: '#522299',
    950: '#000000',
  },
}
SCSS
$custom: #522299;
$custom-light: #8a63b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522299",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 264.202,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39559,
    "c": 0.17813,
    "h": 295.2
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#522299
secondary
#95BF58
accent
#E741A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #522299

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

Preview Lab → · Contrast checker → · Palette generator →

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