#522A78#522A78

#522A78 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.129 H 304.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#522A78
RGBrgb(82, 42, 120)
HSLhsl(271, 48%, 32%)
HSVhsv(271, 65%, 47%)
CMYKcmyk(31.7%, 65%, 0%, 52.9%)
CIE-LABlab(26.17, 34.53, -37.63)
CIE-LCHlch(26.17, 51.08, 312.54°)
OKLaboklab(37.85% 0.0733 -0.1066)
OKLCHoklch(37.85% 0.129 304.5)
XYZxyz(7.6971, 4.8059, 18.2878)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A78 #50782A
analogous
#2B2A78 #522A78 #782A77
triadic
#522A78 #78522A #2A7852
tetradic
#522A78 #782B2A #50782A #2A7778
square
#522A78 #782B2A #50782A #2A7778
split-complementary
#522A78 #77782A #2A782B
monochromatic
#140A1D #331A4B #522A78 #713AA5 #9058C5

Accessibility & contrast

On white

10.71
#522A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#522A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A78
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A78#FFFFFF#000000##FFFFFF
##522A781.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#163E76
Tritanopia (blue-blind)
#4B3A4D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522a78;
/* rgb */ color: rgb(82, 42, 120);
/* oklch */ color: oklch(37.8% 0.129 304.5);
Tailwind
colors: {
  custom: {
    50: '#86669f',
    500: '#522a78',
    950: '#000000',
  },
}
SCSS
$custom: #522a78;
$custom-light: #86669f;
$custom-dark: #000000;
JSON
{
  "hex": "#522a78",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 270.769,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37847,
    "c": 0.12937,
    "h": 304.5
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

primary
#522A78
secondary
#7EAA54
accent
#D85092
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522A78

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

Preview Lab → · Contrast checker → · Palette generator →

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