#522D79#522D79

#522D79 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.4% C 0.126 H 303.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#522D79
RGBrgb(82, 45, 121)
HSLhsl(269, 46%, 33%)
HSVhsv(269, 63%, 47%)
CMYKcmyk(32.2%, 62.8%, 0%, 52.5%)
CIE-LABlab(26.88, 33.09, -37.13)
CIE-LCHlch(26.88, 49.74, 311.70°)
OKLaboklab(38.38% 0.0693 -0.1051)
OKLCHoklch(38.38% 0.126 303.4)
XYZxyz(7.8685, 5.0511, 18.6459)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D79 #54792D
analogous
#2D2E79 #522D79 #782D79
triadic
#522D79 #79522D #2D7952
tetradic
#522D79 #792D2E #54792D #2D7978
square
#522D79 #792D2E #54792D #2D7978
split-complementary
#522D79 #79782D #2E792D
monochromatic
#160C20 #341C4C #522D79 #703EA6 #8F5DC3

Accessibility & contrast

On white

10.45
#522D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D79
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D79#FFFFFF#000000##FFFFFF
##522D791.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043F7B
Deuteranopia (green-blind)
#193F77
Tritanopia (blue-blind)
#4B3D4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522d79;
/* rgb */ color: rgb(82, 45, 121);
/* oklch */ color: oklch(38.4% 0.126 303.4);
Tailwind
colors: {
  custom: {
    50: '#8668a0',
    500: '#522d79',
    950: '#000000',
  },
}
SCSS
$custom: #522d79;
$custom-light: #8668a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522d79",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 269.211,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38382,
    "c": 0.12592,
    "h": 303.4
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#522D79
secondary
#82A958
accent
#D55296
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522D79

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

Preview Lab → · Contrast checker → · Palette generator →

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