#522CB6#522CB6

#522CB6 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.4% C 0.201 H 287.4°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#522CB6
RGBrgb(82, 44, 182)
HSLhsl(257, 61%, 44%)
HSVhsv(257, 76%, 71%)
CMYKcmyk(54.9%, 75.8%, 0%, 28.6%)
CIE-LABlab(31.74, 50.64, -66.57)
CIE-LCHlch(31.74, 83.64, 307.26°)
OKLaboklab(43.42% 0.06 -0.1915)
OKLCHoklch(43.42% 0.201 287.4)
XYZxyz(12.8213, 6.9719, 44.9170)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CB6 #90B62C
analogous
#2C4BB6 #522CB6 #972CB6
triadic
#522CB6 #B6522C #2CB652
tetradic
#522CB6 #B62C4B #90B62C #2CB697
square
#522CB6 #B62C4B #90B62C #2CB697
split-complementary
#522CB6 #B6972C #4BB62C
monochromatic
#261453 #3C2085 #522CB6 #714CD4 #987DE0

Accessibility & contrast

On white

8.77
#522CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#522CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CB6
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CB6#FFFFFF#000000##FFFFFF
##522CB61.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#27536F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522cb6;
/* rgb */ color: rgb(82, 44, 182);
/* oklch */ color: oklch(43.4% 0.201 287.4);
Tailwind
colors: {
  custom: {
    50: '#8d6acd',
    500: '#522cb6',
    950: '#000000',
  },
}
SCSS
$custom: #522cb6;
$custom-light: #8d6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#522cb6",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 256.522,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43424,
    "c": 0.20073,
    "h": 287.4
  },
  "luminance": 0.06973
}

Semantic roles & 50–950 ramp

primary
#522CB6
secondary
#B1C876
accent
#E444B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522CB6

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

Preview Lab → · Contrast checker → · Palette generator →

#522CB6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva