#522C8E#522C8E

#522C8E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.153 H 296.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#522C8E
RGBrgb(82, 44, 142)
HSLhsl(263, 53%, 36%)
HSVhsv(263, 69%, 56%)
CMYKcmyk(42.3%, 69%, 0%, 44.3%)
CIE-LABlab(28.24, 39.38, -48.07)
CIE-LCHlch(28.24, 62.14, 309.33°)
OKLaboklab(39.86% 0.0687 -0.1372)
OKLCHoklch(39.86% 0.153 296.6)
XYZxyz(9.2616, 5.5480, 26.1689)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C8E #688E2C
analogous
#2C378E #522C8E #832C8E
triadic
#522C8E #8E522C #2C8E52
tetradic
#522C8E #8E2C37 #688E2C #2C8E83
square
#522C8E #8E2C37 #688E2C #2C8E83
split-complementary
#522C8E #8E832C #378E2C
monochromatic
#1C0F31 #371E5F #522C8E #6D3ABD #8E65CF

Accessibility & contrast

On white

9.95
#522C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#522C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C8E
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C8E#FFFFFF#000000##FFFFFF
##522C8E1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#434359
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522c8e;
/* rgb */ color: rgb(82, 44, 142);
/* oklch */ color: oklch(39.9% 0.153 296.6);
Tailwind
colors: {
  custom: {
    50: '#8868b0',
    500: '#522c8e',
    950: '#000000',
  },
}
SCSS
$custom: #522c8e;
$custom-light: #8868b0;
$custom-dark: #000000;
JSON
{
  "hex": "#522c8e",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 263.265,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.15346,
    "h": 296.6
  },
  "luminance": 0.05548
}

Semantic roles & 50–950 ramp

primary
#522C8E
secondary
#95B660
accent
#DC4CA4
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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