#522E8D#522E8D

#522E8D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.150 H 296.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#522E8D
RGBrgb(82, 46, 141)
HSLhsl(263, 51%, 37%)
HSVhsv(263, 67%, 55%)
CMYKcmyk(41.8%, 67.4%, 0%, 44.7%)
CIE-LABlab(28.57, 38.00, -46.92)
CIE-LCHlch(28.57, 60.38, 309.00°)
OKLaboklab(40.07% 0.0665 -0.1339)
OKLCHoklch(40.07% 0.15 296.4)
XYZxyz(9.2631, 5.6707, 25.8007)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E8D #698D2E
analogous
#2E3A8D #522E8D #822E8D
triadic
#522E8D #8D522E #2E8D52
tetradic
#522E8D #8D2E3A #698D2E #2E8D82
square
#522E8D #8D2E3A #698D2E #2E8D82
split-complementary
#522E8D #8D822E #3A8D2E
monochromatic
#1C1031 #371F5F #522E8D #6D3DBB #8E68CE

Accessibility & contrast

On white

9.84
#522E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#522E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E8D
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E8D#FFFFFF#000000##FFFFFF
##522E8D1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#434459
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522e8d;
/* rgb */ color: rgb(82, 46, 141);
/* oklch */ color: oklch(40.1% 0.150 296.4);
Tailwind
colors: {
  custom: {
    50: '#8869af',
    500: '#522e8d',
    950: '#000000',
  },
}
SCSS
$custom: #522e8d;
$custom-light: #8869af;
$custom-dark: #000000;
JSON
{
  "hex": "#522e8d",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 262.737,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40072,
    "c": 0.14951,
    "h": 296.4
  },
  "luminance": 0.05671
}

Semantic roles & 50–950 ramp

primary
#522E8D
secondary
#95B562
accent
#DA4EA5
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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