#522CBB#522CBB

#522CBB is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.206 H 286.5°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#522CBB
RGBrgb(82, 44, 187)
HSLhsl(256, 62%, 45%)
HSVhsv(256, 76%, 73%)
CMYKcmyk(56.1%, 76.5%, 0%, 26.7%)
CIE-LABlab(32.22, 52.05, -68.75)
CIE-LCHlch(32.22, 86.23, 307.13°)
OKLaboklab(43.9% 0.0587 -0.1979)
OKLCHoklch(43.9% 0.206 286.5)
XYZxyz(13.3473, 7.1823, 47.6871)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CBB #95BB2C
analogous
#2C4DBB #522CBB #992CBB
triadic
#522CBB #BB522C #2CBB52
tetradic
#522CBB #BB2C4D #95BB2C #2CBB99
square
#522CBB #BB2C4D #95BB2C #2CBB99
split-complementary
#522CBB #BB992C #4DBB2C
monochromatic
#271558 #3C2089 #522CBB #734FD6 #9A80E1

Accessibility & contrast

On white

8.62
#522CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#522CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CBB
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CBB#FFFFFF#000000##FFFFFF
##522CBB1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#215572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522cbb;
/* rgb */ color: rgb(82, 44, 187);
/* oklch */ color: oklch(43.9% 0.206 286.5);
Tailwind
colors: {
  custom: {
    50: '#8e6ad1',
    500: '#522cbb',
    950: '#000000',
  },
}
SCSS
$custom: #522cbb;
$custom-light: #8e6ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#522cbb",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 255.944,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43901,
    "c": 0.20643,
    "h": 286.5
  },
  "luminance": 0.07183
}

Semantic roles & 50–950 ramp

primary
#522CBB
secondary
#B4CA79
accent
#E543BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #522CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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