#522DCA#522DCA

#522DCA is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.5% C 0.222 H 284.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#522DCA
RGBrgb(82, 45, 202)
HSLhsl(254, 64%, 48%)
HSVhsv(254, 78%, 79%)
CMYKcmyk(59.4%, 77.7%, 0%, 20.8%)
CIE-LABlab(33.84, 55.81, -74.87)
CIE-LCHlch(33.84, 93.38, 306.70°)
OKLaboklab(45.48% 0.0538 -0.2158)
OKLCHoklch(45.48% 0.222 284)
XYZxyz(15.0755, 7.9339, 56.6027)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DCA #A5CA2D
analogous
#2D56CA #522DCA #A02DCA
triadic
#522DCA #CA522D #2DCA52
tetradic
#522DCA #CA2D56 #A5CA2D #2DCAA0
square
#522DCA #CA2D56 #A5CA2D #2DCAA0
split-complementary
#522DCA #CAA02D #56CA2D
monochromatic
#291766 #3E2298 #522DCA #785ADA #A18CE5

Accessibility & contrast

On white

8.12
#522DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#522DCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DCA
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DCA#FFFFFF#000000##FFFFFF
##522DCA1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#004AC7
Tritanopia (blue-blind)
#005B7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #522dca;
/* rgb */ color: rgb(82, 45, 202);
/* oklch */ color: oklch(45.5% 0.222 284.0);
Tailwind
colors: {
  custom: {
    50: '#916bdb',
    500: '#522dca',
    950: '#000000',
  },
}
SCSS
$custom: #522dca;
$custom-light: #916bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#522dca",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 254.14,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45477,
    "c": 0.22242,
    "h": 284
  },
  "luminance": 0.07935
}

Semantic roles & 50–950 ramp

primary
#522DCA
secondary
#BECF83
accent
#E741C0
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #522DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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