#522A71#522A71

#522A71 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.121 H 307.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#522A71
RGBrgb(82, 42, 113)
HSLhsl(274, 46%, 30%)
HSVhsv(274, 63%, 44%)
CMYKcmyk(27.4%, 62.8%, 0%, 55.7%)
CIE-LABlab(25.69, 32.72, -33.95)
CIE-LCHlch(25.69, 47.15, 313.94°)
OKLaboklab(37.34% 0.0736 -0.0958)
OKLCHoklch(37.34% 0.121 307.5)
XYZxyz(7.2877, 4.6421, 16.1317)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A71 #49712A
analogous
#2F2A71 #522A71 #712A6C
triadic
#522A71 #71522A #2A7152
tetradic
#522A71 #712F2A #49712A #2A6C71
square
#522A71 #712F2A #49712A #2A6C71
split-complementary
#522A71 #6C712A #2A712F
monochromatic
#110918 #321944 #522A71 #723B9E #9155C0

Accessibility & contrast

On white

10.89
#522A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#522A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A71
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A71#FFFFFF#000000##FFFFFF
##522A711.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#1E3D6F
Tritanopia (blue-blind)
#4D3849
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522a71;
/* rgb */ color: rgb(82, 42, 113);
/* oklch */ color: oklch(37.3% 0.121 307.5);
Tailwind
colors: {
  custom: {
    50: '#85669a',
    500: '#522a71',
    950: '#000000',
  },
}
SCSS
$custom: #522a71;
$custom-light: #85669a;
$custom-dark: #000000;
JSON
{
  "hex": "#522a71",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 273.803,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3734,
    "c": 0.12075,
    "h": 307.5
  },
  "luminance": 0.04642
}

Semantic roles & 50–950 ramp

primary
#522A71
secondary
#76A354
accent
#D5528C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522A71

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

Preview Lab → · Contrast checker → · Palette generator →

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