#522DC2#522DC2

#522DC2 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.213 H 285.2°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#522DC2
RGBrgb(82, 45, 194)
HSLhsl(255, 62%, 47%)
HSVhsv(255, 77%, 76%)
CMYKcmyk(57.7%, 76.8%, 0%, 23.9%)
CIE-LABlab(33.06, 53.55, -71.49)
CIE-LCHlch(33.06, 89.32, 306.84°)
OKLaboklab(44.69% 0.0561 -0.2059)
OKLCHoklch(44.69% 0.213 285.2)
XYZxyz(14.1527, 7.5648, 51.7429)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DC2 #9DC22D
analogous
#2D53C2 #522DC2 #9C2DC2
triadic
#522DC2 #C2522D #2DC252
tetradic
#522DC2 #C22D53 #9DC22D #2DC29C
square
#522DC2 #C22D53 #9DC22D #2DC29C
split-complementary
#522DC2 #C29C2D #53C22D
monochromatic
#28165F #3D2190 #522DC2 #7555D7 #9D86E3

Accessibility & contrast

On white

8.36
#522DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#522DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DC2
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DC2#FFFFFF#000000##FFFFFF
##522DC21.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#0049BF
Tritanopia (blue-blind)
#155876
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #522dc2;
/* rgb */ color: rgb(82, 45, 194);
/* oklch */ color: oklch(44.7% 0.213 285.2);
Tailwind
colors: {
  custom: {
    50: '#8f6bd6',
    500: '#522dc2',
    950: '#000000',
  },
}
SCSS
$custom: #522dc2;
$custom-light: #8f6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#522dc2",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 254.899,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44694,
    "c": 0.21342,
    "h": 285.2
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#522DC2
secondary
#B9CD7E
accent
#E542BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #522DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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