#522E8B#522E8B

#522E8B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.147 H 297.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#522E8B
RGBrgb(82, 46, 139)
HSLhsl(263, 50%, 36%)
HSVhsv(263, 67%, 55%)
CMYKcmyk(41%, 66.9%, 0%, 45.5%)
CIE-LABlab(28.41, 37.44, -45.94)
CIE-LCHlch(28.41, 59.26, 309.18°)
OKLaboklab(39.91% 0.0668 -0.131)
OKLCHoklch(39.91% 0.147 297)
XYZxyz(9.1157, 5.6117, 25.0240)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E8B #678B2E
analogous
#2E398B #522E8B #812E8B
triadic
#522E8B #8B522E #2E8B52
tetradic
#522E8B #8B2E39 #678B2E #2E8B81
square
#522E8B #8B2E39 #678B2E #2E8B81
split-complementary
#522E8B #8B812E #398B2E
monochromatic
#1C102F #371F5D #522E8B #6D3DB9 #8E67CD

Accessibility & contrast

On white

9.89
#522E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522E8B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E8B#FFFFFF#000000##FFFFFF
##522E8B1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522e8b;
/* rgb */ color: rgb(82, 46, 139);
/* oklch */ color: oklch(39.9% 0.147 297.0);
Tailwind
colors: {
  custom: {
    50: '#8769ae',
    500: '#522e8b',
    950: '#000000',
  },
}
SCSS
$custom: #522e8b;
$custom-light: #8769ae;
$custom-dark: #000000;
JSON
{
  "hex": "#522e8b",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 263.226,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39911,
    "c": 0.14703,
    "h": 297
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#522E8B
secondary
#94B361
accent
#DA4EA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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