#522EC3#522EC3

#522EC3 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.214 H 285.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#522EC3
RGBrgb(82, 46, 195)
HSLhsl(254, 62%, 47%)
HSVhsv(254, 76%, 76%)
CMYKcmyk(57.9%, 76.4%, 0%, 23.5%)
CIE-LABlab(33.32, 53.36, -71.64)
CIE-LCHlch(33.32, 89.33, 306.68°)
OKLaboklab(44.91% 0.0551 -0.2064)
OKLCHoklch(44.91% 0.214 285)
XYZxyz(14.3040, 7.6871, 52.3492)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EC3 #9FC32E
analogous
#2E54C3 #522EC3 #9D2EC3
triadic
#522EC3 #C3522E #2EC352
tetradic
#522EC3 #C32E54 #9FC32E #2EC39D
square
#522EC3 #C32E54 #9FC32E #2EC39D
split-complementary
#522EC3 #C39D2E #54C32E
monochromatic
#281760 #3D2291 #522EC3 #7657D7 #9E88E3

Accessibility & contrast

On white

8.28
#522EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#522EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EC3
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EC3#FFFFFF#000000##FFFFFF
##522EC31.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#125977
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #522ec3;
/* rgb */ color: rgb(82, 46, 195);
/* oklch */ color: oklch(44.9% 0.214 285.0);
Tailwind
colors: {
  custom: {
    50: '#8f6bd6',
    500: '#522ec3',
    950: '#000000',
  },
}
SCSS
$custom: #522ec3;
$custom-light: #8f6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#522ec3",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 254.497,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44907,
    "c": 0.21362,
    "h": 285
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#522EC3
secondary
#BACD80
accent
#E543BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #522EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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