#522E8A#522E8A

#522E8A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.146 H 297.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#522E8A
RGBrgb(82, 46, 138)
HSLhsl(263, 50%, 36%)
HSVhsv(263, 67%, 54%)
CMYKcmyk(40.6%, 66.7%, 0%, 45.9%)
CIE-LABlab(28.33, 37.16, -45.44)
CIE-LCHlch(28.33, 58.70, 309.28°)
OKLaboklab(39.83% 0.0669 -0.1295)
OKLCHoklch(39.83% 0.146 297.3)
XYZxyz(9.0429, 5.5827, 24.6410)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E8A #668A2E
analogous
#2E388A #522E8A #802E8A
triadic
#522E8A #8A522E #2E8A52
tetradic
#522E8A #8A2E38 #668A2E #2E8A80
square
#522E8A #8A2E38 #668A2E #2E8A80
split-complementary
#522E8A #8A802E #388A2E
monochromatic
#1B0F2E #371F5C #522E8A #6D3DB8 #8E66CC

Accessibility & contrast

On white

9.92
#522E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#522E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E8A
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E8A#FFFFFF#000000##FFFFFF
##522E8A1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#444358
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522e8a;
/* rgb */ color: rgb(82, 46, 138);
/* oklch */ color: oklch(39.8% 0.146 297.3);
Tailwind
colors: {
  custom: {
    50: '#8769ad',
    500: '#522e8a',
    950: '#000000',
  },
}
SCSS
$custom: #522e8a;
$custom-light: #8769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#522e8a",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 263.478,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39831,
    "c": 0.14578,
    "h": 297.3
  },
  "luminance": 0.05583
}

Semantic roles & 50–950 ramp

primary
#522E8A
secondary
#93B361
accent
#DA4EA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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