#522CB2#522CB2

#522CB2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.196 H 288.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#522CB2
RGBrgb(82, 44, 178)
HSLhsl(257, 60%, 44%)
HSVhsv(257, 75%, 70%)
CMYKcmyk(53.9%, 75.3%, 0%, 30.2%)
CIE-LABlab(31.37, 49.51, -64.81)
CIE-LCHlch(31.37, 81.55, 307.38°)
OKLaboklab(43.05% 0.0611 -0.1864)
OKLCHoklch(43.05% 0.196 288.1)
XYZxyz(12.4139, 6.8089, 42.7710)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CB2 #8CB22C
analogous
#2C49B2 #522CB2 #952CB2
triadic
#522CB2 #B2522C #2CB252
tetradic
#522CB2 #B22C49 #8CB22C #2CB295
square
#522CB2 #B22C49 #8CB22C #2CB295
split-complementary
#522CB2 #B2952C #49B22C
monochromatic
#251450 #3B2081 #522CB2 #7049D2 #977ADE

Accessibility & contrast

On white

8.89
#522CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#522CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CB2
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CB2#FFFFFF#000000##FFFFFF
##522CB21.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#2B516D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522cb2;
/* rgb */ color: rgb(82, 44, 178);
/* oklch */ color: oklch(43.0% 0.196 288.1);
Tailwind
colors: {
  custom: {
    50: '#8d69ca',
    500: '#522cb2',
    950: '#000000',
  },
}
SCSS
$custom: #522cb2;
$custom-light: #8d69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#522cb2",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 257.015,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43047,
    "c": 0.19612,
    "h": 288.1
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#522CB2
secondary
#AFC673
accent
#E444B6
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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