#522C9C#522C9C

#522C9C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.170 H 292.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#522C9C
RGBrgb(82, 44, 156)
HSLhsl(260, 56%, 39%)
HSVhsv(260, 72%, 61%)
CMYKcmyk(47.4%, 71.8%, 0%, 38.8%)
CIE-LABlab(29.40, 43.30, -54.77)
CIE-LCHlch(29.40, 69.82, 308.33°)
OKLaboklab(41.05% 0.0662 -0.157)
OKLCHoklch(41.05% 0.17 292.9)
XYZxyz(10.3794, 5.9952, 32.0563)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C9C #769C2C
analogous
#2C3E9C #522C9C #8A2C9C
triadic
#522C9C #9C522C #2C9C52
tetradic
#522C9C #9C2C3E #769C2C #2C9C8A
square
#522C9C #9C2C3E #769C2C #2C9C8A
split-complementary
#522C9C #9C8A2C #3E9C2C
monochromatic
#20113D #391F6C #522C9C #6C3DC8 #906DD6

Accessibility & contrast

On white

9.55
#522C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#522C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C9C
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C9C#FFFFFF#000000##FFFFFF
##522C9C1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#3C4961
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522c9c;
/* rgb */ color: rgb(82, 44, 156);
/* oklch */ color: oklch(41.1% 0.170 292.9);
Tailwind
colors: {
  custom: {
    50: '#8a68ba',
    500: '#522c9c',
    950: '#000000',
  },
}
SCSS
$custom: #522c9c;
$custom-light: #8a68ba;
$custom-dark: #000000;
JSON
{
  "hex": "#522c9c",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 260.357,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41052,
    "c": 0.17035,
    "h": 292.9
  },
  "luminance": 0.05996
}

Semantic roles & 50–950 ramp

primary
#522C9C
secondary
#A0BD67
accent
#DF49AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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