#522A76#522A76

#522A76 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.7% C 0.127 H 305.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#522A76
RGBrgb(82, 42, 118)
HSLhsl(272, 48%, 31%)
HSVhsv(272, 64%, 46%)
CMYKcmyk(30.5%, 64.4%, 0%, 53.7%)
CIE-LABlab(26.03, 34.01, -36.59)
CIE-LCHlch(26.03, 49.96, 312.91°)
OKLaboklab(37.7% 0.0734 -0.1035)
OKLCHoklch(37.7% 0.127 305.4)
XYZxyz(7.5769, 4.7578, 17.6552)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A76 #4E762A
analogous
#2C2A76 #522A76 #762A74
triadic
#522A76 #76522A #2A7652
tetradic
#522A76 #762C2A #4E762A #2A7476
square
#522A76 #762C2A #4E762A #2A7476
split-complementary
#522A76 #74762A #2A762C
monochromatic
#130A1C #331A49 #522A76 #713AA3 #9057C3

Accessibility & contrast

On white

10.76
#522A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#522A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A76
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A76#FFFFFF#000000##FFFFFF
##522A761.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#193E74
Tritanopia (blue-blind)
#4C3A4C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522a76;
/* rgb */ color: rgb(82, 42, 118);
/* oklch */ color: oklch(37.7% 0.127 305.4);
Tailwind
colors: {
  custom: {
    50: '#86669e',
    500: '#522a76',
    950: '#000000',
  },
}
SCSS
$custom: #522a76;
$custom-light: #86669e;
$custom-dark: #000000;
JSON
{
  "hex": "#522a76",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 271.579,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.377,
    "c": 0.12691,
    "h": 305.4
  },
  "luminance": 0.04758
}

Semantic roles & 50–950 ramp

primary
#522A76
secondary
#7CA854
accent
#D75190
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522A76

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

Preview Lab → · Contrast checker → · Palette generator →

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