#522CB5#522CB5

#522CB5 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.200 H 287.6°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#522CB5
RGBrgb(82, 44, 181)
HSLhsl(257, 61%, 44%)
HSVhsv(257, 76%, 71%)
CMYKcmyk(54.7%, 75.7%, 0%, 29%)
CIE-LABlab(31.65, 50.36, -66.13)
CIE-LCHlch(31.65, 83.12, 307.29°)
OKLaboklab(43.33% 0.0603 -0.1902)
OKLCHoklch(43.33% 0.2 287.6)
XYZxyz(12.7184, 6.9307, 44.3747)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CB5 #8FB52C
analogous
#2C4BB5 #522CB5 #972CB5
triadic
#522CB5 #B5522C #2CB552
tetradic
#522CB5 #B52C4B #8FB52C #2CB597
square
#522CB5 #B52C4B #8FB52C #2CB597
split-complementary
#522CB5 #B5972C #4BB52C
monochromatic
#251453 #3C2084 #522CB5 #714BD3 #987CDF

Accessibility & contrast

On white

8.80
#522CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522CB5
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CB5#FFFFFF#000000##FFFFFF
##522CB51.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#28526F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522cb5;
/* rgb */ color: rgb(82, 44, 181);
/* oklch */ color: oklch(43.3% 0.200 287.6);
Tailwind
colors: {
  custom: {
    50: '#8d6acc',
    500: '#522cb5',
    950: '#000000',
  },
}
SCSS
$custom: #522cb5;
$custom-light: #8d6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#522cb5",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 256.642,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4333,
    "c": 0.19958,
    "h": 287.6
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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