#522A7C#522A7C

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

Color values

HEX#522A7C
RGBrgb(82, 42, 124)
HSLhsl(269, 49%, 33%)
HSVhsv(269, 66%, 49%)
CMYKcmyk(33.9%, 66.1%, 0%, 51.4%)
CIE-LABlab(26.46, 35.59, -39.70)
CIE-LCHlch(26.46, 53.32, 311.87°)
OKLaboklab(38.15% 0.0731 -0.1126)
OKLCHoklch(38.15% 0.134 303)
XYZxyz(7.9449, 4.9050, 19.5931)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A7C #547C2A
analogous
#2A2B7C #522A7C #7B2A7C
triadic
#522A7C #7C522A #2A7C52
tetradic
#522A7C #7C2A2B #547C2A #2A7C7B
square
#522A7C #7C2A2B #547C2A #2A7C7B
split-complementary
#522A7C #7C7B2A #2B7C2A
monochromatic
#160B21 #341B4E #522A7C #7039AA #8F59C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522A7C#FFFFFF#000000##FFFFFF
##522A7C1.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)
#003E7F
Deuteranopia (green-blind)
#0F3E7A
Tritanopia (blue-blind)
#4A3C4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522a7c;
/* rgb */ color: rgb(82, 42, 124);
/* oklch */ color: oklch(38.1% 0.134 303.0);
Tailwind
colors: {
  custom: {
    50: '#8666a2',
    500: '#522a7c',
    950: '#000000',
  },
}
SCSS
$custom: #522a7c;
$custom-light: #8666a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522a7c",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 269.268,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38148,
    "c": 0.13427,
    "h": 303
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#522A7C
secondary
#82AD55
accent
#D94F96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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