#522C8D#522C8D

#522C8D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.152 H 296.9°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#522C8D
RGBrgb(82, 44, 141)
HSLhsl(264, 52%, 36%)
HSVhsv(264, 69%, 55%)
CMYKcmyk(41.8%, 68.8%, 0%, 44.7%)
CIE-LABlab(28.16, 39.11, -47.58)
CIE-LCHlch(28.16, 61.59, 309.42°)
OKLaboklab(39.78% 0.0688 -0.1358)
OKLCHoklch(39.78% 0.152 296.9)
XYZxyz(9.1868, 5.5181, 25.7752)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C8D #678D2C
analogous
#2C378D #522C8D #832C8D
triadic
#522C8D #8D522C #2C8D52
tetradic
#522C8D #8D2C37 #678D2C #2C8D83
square
#522C8D #8D2C37 #678D2C #2C8D83
split-complementary
#522C8D #8D832C #378D2C
monochromatic
#1C0F30 #371D5E #522C8D #6D3BBC #8E65CF

Accessibility & contrast

On white

9.98
#522C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C8D
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C8D#FFFFFF#000000##FFFFFF
##522C8D1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#434359
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522c8d;
/* rgb */ color: rgb(82, 44, 141);
/* oklch */ color: oklch(39.8% 0.152 296.9);
Tailwind
colors: {
  custom: {
    50: '#8868af',
    500: '#522c8d',
    950: '#000000',
  },
}
SCSS
$custom: #522c8d;
$custom-light: #8868af;
$custom-dark: #000000;
JSON
{
  "hex": "#522c8d",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 263.505,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39782,
    "c": 0.15224,
    "h": 296.9
  },
  "luminance": 0.05518
}

Semantic roles & 50–950 ramp

primary
#522C8D
secondary
#94B560
accent
#DC4CA3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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