#522B79#522B79

#522B79 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.129 H 303.9°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#522B79
RGBrgb(82, 43, 121)
HSLhsl(270, 48%, 32%)
HSVhsv(270, 64%, 47%)
CMYKcmyk(32.2%, 64.5%, 0%, 52.5%)
CIE-LABlab(26.45, 34.23, -37.82)
CIE-LCHlch(26.45, 51.01, 312.15°)
OKLaboklab(38.07% 0.072 -0.1071)
OKLCHoklch(38.07% 0.129 303.9)
XYZxyz(7.7940, 4.9021, 18.6210)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B79 #52792B
analogous
#2B2B79 #522B79 #792B79
triadic
#522B79 #79522B #2B7952
tetradic
#522B79 #792B2B #52792B #2B7979
square
#522B79 #792B2B #52792B #2B7979
split-complementary
#522B79 #79792B #2B792B
monochromatic
#150B1F #331B4C #522B79 #713BA6 #8F5AC4

Accessibility & contrast

On white

10.60
#522B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B79
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B79#FFFFFF#000000##FFFFFF
##522B791.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7B
Deuteranopia (green-blind)
#163F77
Tritanopia (blue-blind)
#4B3B4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522b79;
/* rgb */ color: rgb(82, 43, 121);
/* oklch */ color: oklch(38.1% 0.129 303.9);
Tailwind
colors: {
  custom: {
    50: '#8667a0',
    500: '#522b79',
    950: '#000000',
  },
}
SCSS
$custom: #522b79;
$custom-light: #8667a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522b79",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 270,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38073,
    "c": 0.12906,
    "h": 303.9
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#522B79
secondary
#80AA56
accent
#D75194
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522B79

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

Preview Lab → · Contrast checker → · Palette generator →

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