#522C88#522C88

#522C88 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.146 H 298.4°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#522C88
RGBrgb(82, 44, 136)
HSLhsl(265, 51%, 35%)
HSVhsv(265, 68%, 53%)
CMYKcmyk(39.7%, 67.6%, 0%, 46.7%)
CIE-LABlab(27.77, 37.73, -45.11)
CIE-LCHlch(27.77, 58.81, 309.91°)
OKLaboklab(39.38% 0.0695 -0.1285)
OKLCHoklch(39.38% 0.146 298.4)
XYZxyz(8.8232, 5.3727, 23.8600)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C88 #62882C
analogous
#2C3488 #522C88 #802C88
triadic
#522C88 #88522C #2C8852
tetradic
#522C88 #882C34 #62882C #2C8880
square
#522C88 #882C34 #62882C #2C8880
split-complementary
#522C88 #88802C #34882C
monochromatic
#1A0E2C #361D5A #522C88 #6E3BB6 #8E62CC

Accessibility & contrast

On white

10.12
#522C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#522C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C88
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C88#FFFFFF#000000##FFFFFF
##522C881.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#454156
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522c88;
/* rgb */ color: rgb(82, 44, 136);
/* oklch */ color: oklch(39.4% 0.146 298.4);
Tailwind
colors: {
  custom: {
    50: '#8768ab',
    500: '#522c88',
    950: '#000000',
  },
}
SCSS
$custom: #522c88;
$custom-light: #8768ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522c88",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 264.783,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39377,
    "c": 0.14611,
    "h": 298.4
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#522C88
secondary
#8FB35D
accent
#DB4DA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C88

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

Preview Lab → · Contrast checker → · Palette generator →

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