#522C8A#522C8A

#522C8A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.149 H 297.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#522C8A
RGBrgb(82, 44, 138)
HSLhsl(264, 52%, 36%)
HSVhsv(264, 68%, 54%)
CMYKcmyk(40.6%, 68.1%, 0%, 45.9%)
CIE-LABlab(27.93, 38.28, -46.10)
CIE-LCHlch(27.93, 59.92, 309.70°)
OKLaboklab(39.54% 0.0692 -0.1315)
OKLCHoklch(39.54% 0.149 297.8)
XYZxyz(8.9666, 5.4300, 24.6155)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C8A #648A2C
analogous
#2C358A #522C8A #812C8A
triadic
#522C8A #8A522C #2C8A52
tetradic
#522C8A #8A2C35 #648A2C #2C8A81
square
#522C8A #8A2C35 #648A2C #2C8A81
split-complementary
#522C8A #8A812C #358A2C
monochromatic
#1B0E2D #361D5C #522C8A #6E3BB8 #8E63CD

Accessibility & contrast

On white

10.07
#522C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#522C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C8A
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C8A#FFFFFF#000000##FFFFFF
##522C8A1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#444257
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522c8a;
/* rgb */ color: rgb(82, 44, 138);
/* oklch */ color: oklch(39.5% 0.149 297.8);
Tailwind
colors: {
  custom: {
    50: '#8768ad',
    500: '#522c8a',
    950: '#000000',
  },
}
SCSS
$custom: #522c8a;
$custom-light: #8768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#522c8a",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 264.255,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39538,
    "c": 0.14857,
    "h": 297.8
  },
  "luminance": 0.0543
}

Semantic roles & 50–950 ramp

primary
#522C8A
secondary
#91B45E
accent
#DB4DA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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