#522DC8#522DC8

#522DC8 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.3% C 0.220 H 284.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#522DC8
RGBrgb(82, 45, 200)
HSLhsl(254, 63%, 48%)
HSVhsv(254, 78%, 78%)
CMYKcmyk(59%, 77.5%, 0%, 21.6%)
CIE-LABlab(33.65, 55.24, -74.03)
CIE-LCHlch(33.65, 92.37, 306.73°)
OKLaboklab(45.28% 0.0544 -0.2134)
OKLCHoklch(45.28% 0.22 284.3)
XYZxyz(14.8402, 7.8398, 55.3636)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DC8 #A3C82D
analogous
#2D55C8 #522DC8 #A02DC8
triadic
#522DC8 #C8522D #2DC852
tetradic
#522DC8 #C82D55 #A3C82D #2DC8A0
square
#522DC8 #C82D55 #A3C82D #2DC8A0
split-complementary
#522DC8 #C8A02D #55C82D
monochromatic
#291764 #3E2296 #522DC8 #7759DA #A08BE5

Accessibility & contrast

On white

8.18
#522DC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#522DC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DC8
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DC8#FFFFFF#000000##FFFFFF
##522DC81.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#025A7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #522dc8;
/* rgb */ color: rgb(82, 45, 200);
/* oklch */ color: oklch(45.3% 0.220 284.3);
Tailwind
colors: {
  custom: {
    50: '#906bda',
    500: '#522dc8',
    950: '#000000',
  },
}
SCSS
$custom: #522dc8;
$custom-light: #906bda;
$custom-dark: #000000;
JSON
{
  "hex": "#522dc8",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 254.323,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4528,
    "c": 0.22018,
    "h": 284.3
  },
  "luminance": 0.07841
}

Semantic roles & 50–950 ramp

primary
#522DC8
secondary
#BCCF82
accent
#E641BF
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #522DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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