#522EA6#522EA6

#522EA6 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.180 H 290.2°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#522EA6
RGBrgb(82, 46, 166)
HSLhsl(258, 57%, 42%)
HSVhsv(258, 72%, 65%)
CMYKcmyk(50.6%, 72.3%, 0%, 34.9%)
CIE-LABlab(30.64, 45.09, -58.80)
CIE-LCHlch(30.64, 74.10, 307.48°)
OKLaboklab(42.2% 0.0623 -0.1688)
OKLCHoklch(42.2% 0.18 290.2)
XYZxyz(11.3376, 6.5005, 36.7263)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA6 #82A62E
analogous
#2E46A6 #522EA6 #8E2EA6
triadic
#522EA6 #A6522E #2EA652
tetradic
#522EA6 #A62E46 #82A62E #2EA68E
square
#522EA6 #A62E46 #82A62E #2EA68E
split-complementary
#522EA6 #A68E2E #46A62E
monochromatic
#231346 #3A2176 #522EA6 #6E46CC #9376D9

Accessibility & contrast

On white

9.13
#522EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#522EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA6
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA6#FFFFFF#000000##FFFFFF
##522EA61.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#354D67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522ea6;
/* rgb */ color: rgb(82, 46, 166);
/* oklch */ color: oklch(42.2% 0.180 290.2);
Tailwind
colors: {
  custom: {
    50: '#8b6ac1',
    500: '#522ea6',
    950: '#000000',
  },
}
SCSS
$custom: #522ea6;
$custom-light: #8b6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea6",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 258,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42202,
    "c": 0.17991,
    "h": 290.2
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#522EA6
secondary
#A8C16F
accent
#E048B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #522EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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