#522EAB#522EAB

#522EAB is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.186 H 289.2°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#522EAB
RGBrgb(82, 46, 171)
HSLhsl(257, 58%, 43%)
HSVhsv(257, 73%, 67%)
CMYKcmyk(52%, 73.1%, 0%, 32.9%)
CIE-LABlab(31.08, 46.52, -61.08)
CIE-LCHlch(31.08, 76.78, 307.29°)
OKLaboklab(42.65% 0.0612 -0.1755)
OKLCHoklch(42.65% 0.186 289.2)
XYZxyz(11.8052, 6.6876, 39.1890)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EAB #87AB2E
analogous
#2E48AB #522EAB #912EAB
triadic
#522EAB #AB522E #2EAB52
tetradic
#522EAB #AB2E48 #87AB2E #2EAB91
square
#522EAB #AB2E48 #87AB2E #2EAB91
split-complementary
#522EAB #AB912E #48AB2E
monochromatic
#24144B #3B217B #522EAB #6F48CE #9579DB

Accessibility & contrast

On white

8.98
#522EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#522EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EAB
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EAB#FFFFFF#000000##FFFFFF
##522EAB1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#314F6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522eab;
/* rgb */ color: rgb(82, 46, 171);
/* oklch */ color: oklch(42.7% 0.186 289.2);
Tailwind
colors: {
  custom: {
    50: '#8c6ac5',
    500: '#522eab',
    950: '#000000',
  },
}
SCSS
$custom: #522eab;
$custom-light: #8c6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#522eab",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 257.28,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42652,
    "c": 0.18584,
    "h": 289.2
  },
  "luminance": 0.06688
}

Semantic roles & 50–950 ramp

primary
#522EAB
secondary
#ACC372
accent
#E147B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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