#522A90#522A90

#522A90 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.158 H 296.4°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#522A90
RGBrgb(82, 42, 144)
HSLhsl(264, 55%, 36%)
HSVhsv(264, 71%, 56%)
CMYKcmyk(43.1%, 70.8%, 0%, 43.5%)
CIE-LABlab(28.02, 41.01, -49.67)
CIE-LCHlch(28.02, 64.42, 309.54°)
OKLaboklab(39.75% 0.0705 -0.142)
OKLCHoklch(39.75% 0.158 296.4)
XYZxyz(9.3404, 5.4632, 26.9425)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A90 #68902A
analogous
#2A3590 #522A90 #852A90
triadic
#522A90 #90522A #2A9052
tetradic
#522A90 #902A35 #68902A #2A9085
square
#522A90 #902A35 #68902A #2A9085
split-complementary
#522A90 #90852A #35902A
monochromatic
#1C0E31 #371C61 #522A90 #6D38BF #8E63D1

Accessibility & contrast

On white

10.04
#522A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#522A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A90
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A90#FFFFFF#000000##FFFFFF
##522A901.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004393
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#42435A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522a90;
/* rgb */ color: rgb(82, 42, 144);
/* oklch */ color: oklch(39.8% 0.158 296.4);
Tailwind
colors: {
  custom: {
    50: '#8867b1',
    500: '#522a90',
    950: '#000000',
  },
}
SCSS
$custom: #522a90;
$custom-light: #8867b1;
$custom-dark: #000000;
JSON
{
  "hex": "#522a90",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 263.529,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39752,
    "c": 0.15849,
    "h": 296.4
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#522A90
secondary
#95B75E
accent
#DE4AA4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A90

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

Preview Lab → · Contrast checker → · Palette generator →

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