#522A79#522A79

#522A79 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.131 H 304.1°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#522A79
RGBrgb(82, 42, 121)
HSLhsl(270, 48%, 32%)
HSVhsv(270, 65%, 47%)
CMYKcmyk(32.2%, 65.3%, 0%, 52.5%)
CIE-LABlab(26.25, 34.80, -38.15)
CIE-LCHlch(26.25, 51.64, 312.37°)
OKLaboklab(37.92% 0.0733 -0.1081)
OKLCHoklch(37.92% 0.131 304.1)
XYZxyz(7.7581, 4.8303, 18.6091)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A79 #51792A
analogous
#2B2A79 #522A79 #792A79
triadic
#522A79 #79522A #2A7952
tetradic
#522A79 #792B2A #51792A #2A7979
square
#522A79 #792B2A #51792A #2A7979
split-complementary
#522A79 #79792A #2A792B
monochromatic
#140A1E #331A4C #522A79 #713AA6 #8F58C5

Accessibility & contrast

On white

10.68
#522A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A79
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A79#FFFFFF#000000##FFFFFF
##522A791.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#153E77
Tritanopia (blue-blind)
#4B3B4D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522a79;
/* rgb */ color: rgb(82, 42, 121);
/* oklch */ color: oklch(37.9% 0.131 304.1);
Tailwind
colors: {
  custom: {
    50: '#8666a0',
    500: '#522a79',
    950: '#000000',
  },
}
SCSS
$custom: #522a79;
$custom-light: #8666a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522a79",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 270.38,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37922,
    "c": 0.1306,
    "h": 304.1
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#522A79
secondary
#7FAB54
accent
#D85093
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522A79

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

Preview Lab → · Contrast checker → · Palette generator →

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