#522C79#522C79

#522C79 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.128 H 303.7°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#522C79
RGBrgb(82, 44, 121)
HSLhsl(270, 47%, 32%)
HSVhsv(270, 64%, 47%)
CMYKcmyk(32.2%, 63.6%, 0%, 52.5%)
CIE-LABlab(26.67, 33.66, -37.48)
CIE-LCHlch(26.67, 50.38, 311.93°)
OKLaboklab(38.23% 0.0707 -0.1061)
OKLCHoklch(38.23% 0.128 303.7)
XYZxyz(7.8308, 4.9757, 18.6333)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C79 #53792C
analogous
#2C2D79 #522C79 #782C79
triadic
#522C79 #79522C #2C7952
tetradic
#522C79 #792C2D #53792C #2C7978
square
#522C79 #792C2D #53792C #2C7978
split-complementary
#522C79 #79782C #2D792C
monochromatic
#150B1F #341C4C #522C79 #703CA6 #8F5CC4

Accessibility & contrast

On white

10.53
#522C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C79
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C79#FFFFFF#000000##FFFFFF
##522C791.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013E7B
Deuteranopia (green-blind)
#183F77
Tritanopia (blue-blind)
#4B3C4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522c79;
/* rgb */ color: rgb(82, 44, 121);
/* oklch */ color: oklch(38.2% 0.128 303.7);
Tailwind
colors: {
  custom: {
    50: '#8667a0',
    500: '#522c79',
    950: '#000000',
  },
}
SCSS
$custom: #522c79;
$custom-light: #8667a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522c79",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 269.61,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38226,
    "c": 0.1275,
    "h": 303.7
  },
  "luminance": 0.04976
}

Semantic roles & 50–950 ramp

primary
#522C79
secondary
#81AA57
accent
#D65195
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522C79

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

Preview Lab → · Contrast checker → · Palette generator →

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