#522A7E#522A7E

#522A7E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.137 H 302.2°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#522A7E
RGBrgb(82, 42, 126)
HSLhsl(269, 50%, 33%)
HSVhsv(269, 67%, 49%)
CMYKcmyk(34.9%, 66.7%, 0%, 50.6%)
CIE-LABlab(26.61, 36.12, -40.73)
CIE-LCHlch(26.61, 54.44, 311.57°)
OKLaboklab(38.3% 0.0729 -0.1157)
OKLCHoklch(38.3% 0.137 302.2)
XYZxyz(8.0727, 4.9561, 20.2659)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A7E #567E2A
analogous
#2A2C7E #522A7E #7C2A7E
triadic
#522A7E #7E522A #2A7E52
tetradic
#522A7E #7E2A2C #567E2A #2A7E7C
square
#522A7E #7E2A2C #567E2A #2A7E7C
split-complementary
#522A7E #7E7C2A #2C7E2A
monochromatic
#160B22 #341B50 #522A7E #7039AC #8F5AC8

Accessibility & contrast

On white

10.55
#522A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A7E
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A7E#FFFFFF#000000##FFFFFF
##522A7E1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#0B3F7C
Tritanopia (blue-blind)
#493C50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522a7e;
/* rgb */ color: rgb(82, 42, 126);
/* oklch */ color: oklch(38.3% 0.137 302.2);
Tailwind
colors: {
  custom: {
    50: '#8666a4',
    500: '#522a7e',
    950: '#000000',
  },
}
SCSS
$custom: #522a7e;
$custom-light: #8666a4;
$custom-dark: #000000;
JSON
{
  "hex": "#522a7e",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 268.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.383,
    "c": 0.13672,
    "h": 302.2
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#522A7E
secondary
#84AE56
accent
#DA4E97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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