#522E7A#522E7A

#522E7A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.126 H 302.8°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#522E7A
RGBrgb(82, 46, 122)
HSLhsl(268, 45%, 33%)
HSVhsv(268, 62%, 48%)
CMYKcmyk(32.8%, 62.3%, 0%, 52.2%)
CIE-LABlab(27.17, 32.77, -37.30)
CIE-LCHlch(27.17, 49.66, 311.30°)
OKLaboklab(38.61% 0.068 -0.1056)
OKLCHoklch(38.61% 0.126 302.8)
XYZxyz(7.9687, 5.1530, 18.9834)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E7A #567A2E
analogous
#2E307A #522E7A #782E7A
triadic
#522E7A #7A522E #2E7A52
tetradic
#522E7A #7A2E30 #567A2E #2E7A78
square
#522E7A #7A2E30 #567A2E #2E7A78
split-complementary
#522E7A #7A782E #307A2E
monochromatic
#160C21 #341D4E #522E7A #703FA6 #8F60C3

Accessibility & contrast

On white

10.34
#522E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E7A
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E7A#FFFFFF#000000##FFFFFF
##522E7A1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063F7C
Deuteranopia (green-blind)
#1A4078
Tritanopia (blue-blind)
#4A3E4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522e7a;
/* rgb */ color: rgb(82, 46, 122);
/* oklch */ color: oklch(38.6% 0.126 302.8);
Tailwind
colors: {
  custom: {
    50: '#8669a1',
    500: '#522e7a',
    950: '#000000',
  },
}
SCSS
$custom: #522e7a;
$custom-light: #8669a1;
$custom-dark: #000000;
JSON
{
  "hex": "#522e7a",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 268.421,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38613,
    "c": 0.12561,
    "h": 302.8
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#522E7A
secondary
#84AA5A
accent
#D55397
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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