#522EA8#522EA8

#522EA8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.182 H 289.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#522EA8
RGBrgb(82, 46, 168)
HSLhsl(258, 57%, 42%)
HSVhsv(258, 73%, 66%)
CMYKcmyk(51.2%, 72.6%, 0%, 34.1%)
CIE-LABlab(30.82, 45.66, -59.72)
CIE-LCHlch(30.82, 75.17, 307.40°)
OKLaboklab(42.38% 0.0618 -0.1715)
OKLCHoklch(42.38% 0.182 289.8)
XYZxyz(11.5225, 6.5745, 37.7001)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA8 #84A82E
analogous
#2E47A8 #522EA8 #8F2EA8
triadic
#522EA8 #A8522E #2EA852
tetradic
#522EA8 #A82E47 #84A82E #2EA88F
square
#522EA8 #A82E47 #84A82E #2EA88F
split-complementary
#522EA8 #A88F2E #47A82E
monochromatic
#231448 #3B2178 #522EA8 #6E47CD #9477DA

Accessibility & contrast

On white

9.07
#522EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#522EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA8
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA8#FFFFFF#000000##FFFFFF
##522EA81.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#344E68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522ea8;
/* rgb */ color: rgb(82, 46, 168);
/* oklch */ color: oklch(42.4% 0.182 289.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ac3',
    500: '#522ea8',
    950: '#000000',
  },
}
SCSS
$custom: #522ea8;
$custom-light: #8b6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea8",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 257.705,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42381,
    "c": 0.18228,
    "h": 289.8
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#522EA8
secondary
#AAC270
accent
#E048B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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