#522A77#522A77

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

Color values

HEX#522A77
RGBrgb(82, 42, 119)
HSLhsl(271, 48%, 32%)
HSVhsv(271, 65%, 47%)
CMYKcmyk(31.1%, 64.7%, 0%, 53.3%)
CIE-LABlab(26.10, 34.27, -37.11)
CIE-LCHlch(26.10, 50.52, 312.72°)
OKLaboklab(37.77% 0.0734 -0.105)
OKLCHoklch(37.77% 0.128 304.9)
XYZxyz(7.6367, 4.7817, 17.9698)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A77 #4F772A
analogous
#2C2A77 #522A77 #772A76
triadic
#522A77 #77522A #2A7752
tetradic
#522A77 #772C2A #4F772A #2A7677
square
#522A77 #772C2A #4F772A #2A7677
split-complementary
#522A77 #76772A #2A772C
monochromatic
#140A1D #331A4A #522A77 #713AA4 #9058C4

Accessibility & contrast

On white

10.73
#522A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522A77
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A77#FFFFFF#000000##FFFFFF
##522A771.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D79
Deuteranopia (green-blind)
#183E75
Tritanopia (blue-blind)
#4B3A4C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522a77;
/* rgb */ color: rgb(82, 42, 119);
/* oklch */ color: oklch(37.8% 0.128 304.9);
Tailwind
colors: {
  custom: {
    50: '#86669f',
    500: '#522a77',
    950: '#000000',
  },
}
SCSS
$custom: #522a77;
$custom-light: #86669f;
$custom-dark: #000000;
JSON
{
  "hex": "#522a77",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 271.169,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37773,
    "c": 0.12814,
    "h": 304.9
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#522A77
secondary
#7DA954
accent
#D75091
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522A77

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

Preview Lab → · Contrast checker → · Palette generator →

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