#522AEA#522AEA

#522AEA is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.4% C 0.260 H 280.1°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#522AEA
RGBrgb(82, 42, 234)
HSLhsl(253, 82%, 54%)
HSVhsv(253, 82%, 92%)
CMYKcmyk(65%, 82.1%, 0%, 8.2%)
CIE-LABlab(36.72, 65.89, -88.53)
CIE-LCHlch(36.72, 110.36, 306.66°)
OKLaboklab(48.45% 0.0455 -0.2556)
OKLCHoklch(48.45% 0.26 280.1)
XYZxyz(19.1542, 9.3887, 78.6288)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AEA #C2EA2A
analogous
#2A62EA #522AEA #B22AEA
triadic
#522AEA #EA522A #2AEA52
tetradic
#522AEA #EA2A62 #C2EA2A #2AEAB2
square
#522AEA #EA2A62 #C2EA2A #2AEAB2
split-complementary
#522AEA #EAB22A #62EA2A
monochromatic
#280E8C #3813C4 #522AEA #7F62EF #AC99F5

Accessibility & contrast

On white

7.30
#522AEA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#522AEA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AEA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AEA#FFFFFF#000000##FFFFFF
##522AEA1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DEF
Deuteranopia (green-blind)
#004FE7
Tritanopia (blue-blind)
#00678D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #522aea;
/* rgb */ color: rgb(82, 42, 234);
/* oklch */ color: oklch(48.4% 0.260 280.1);
Tailwind
colors: {
  custom: {
    50: '#976cf2',
    500: '#522aea',
    950: '#000000',
  },
}
SCSS
$custom: #522aea;
$custom-light: #976cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#522aea",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 234
  },
  "hsl": {
    "h": 252.5,
    "s": 82.051,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48446,
    "c": 0.25958,
    "h": 280.1
  },
  "luminance": 0.0939
}

Semantic roles & 50–950 ramp

primary
#522AEA
secondary
#D0E18F
accent
#F82FCF
background
#FAF6FF
surface
#F4ECFE
border
#CEC7D6
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #522AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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