#522C8B#522C8B

#522C8B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.150 H 297.5°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#522C8B
RGBrgb(82, 44, 139)
HSLhsl(264, 52%, 36%)
HSVhsv(264, 68%, 55%)
CMYKcmyk(41%, 68.3%, 0%, 45.5%)
CIE-LABlab(28.00, 38.55, -46.60)
CIE-LCHlch(28.00, 60.48, 309.60°)
OKLaboklab(39.62% 0.0691 -0.1329)
OKLCHoklch(39.62% 0.15 297.5)
XYZxyz(9.0394, 5.4591, 24.9986)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C8B #658B2C
analogous
#2C358B #522C8B #812C8B
triadic
#522C8B #8B522C #2C8B52
tetradic
#522C8B #8B2C35 #658B2C #2C8B81
square
#522C8B #8B2C35 #658B2C #2C8B81
split-complementary
#522C8B #8B812C #358B2C
monochromatic
#1B0F2E #371D5D #522C8B #6D3BB9 #8E64CE

Accessibility & contrast

On white

10.04
#522C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522C8B
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C8B#FFFFFF#000000##FFFFFF
##522C8B1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522c8b;
/* rgb */ color: rgb(82, 44, 139);
/* oklch */ color: oklch(39.6% 0.150 297.5);
Tailwind
colors: {
  custom: {
    50: '#8868ae',
    500: '#522c8b',
    950: '#000000',
  },
}
SCSS
$custom: #522c8b;
$custom-light: #8868ae;
$custom-dark: #000000;
JSON
{
  "hex": "#522c8b",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 264,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39619,
    "c": 0.14979,
    "h": 297.5
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#522C8B
secondary
#92B45F
accent
#DB4CA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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