#522C78#522C78

#522C78 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.126 H 304.1°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#522C78
RGBrgb(82, 44, 120)
HSLhsl(270, 46%, 32%)
HSVhsv(270, 63%, 47%)
CMYKcmyk(31.7%, 63.3%, 0%, 52.9%)
CIE-LABlab(26.60, 33.40, -36.96)
CIE-LCHlch(26.60, 49.81, 312.11°)
OKLaboklab(38.15% 0.0707 -0.1046)
OKLCHoklch(38.15% 0.126 304.1)
XYZxyz(7.7698, 4.9513, 18.3120)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C78 #52782C
analogous
#2C2C78 #522C78 #782C78
triadic
#522C78 #78522C #2C7852
tetradic
#522C78 #782C2C #52782C #2C7878
square
#522C78 #782C2C #52782C #2C7878
split-complementary
#522C78 #78782C #2C782C
monochromatic
#150B1E #331C4B #522C78 #713CA5 #8F5BC3

Accessibility & contrast

On white

10.55
#522C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C78
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C78#FFFFFF#000000##FFFFFF
##522C781.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033E7A
Deuteranopia (green-blind)
#193F76
Tritanopia (blue-blind)
#4B3C4D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522c78;
/* rgb */ color: rgb(82, 44, 120);
/* oklch */ color: oklch(38.2% 0.126 304.1);
Tailwind
colors: {
  custom: {
    50: '#86679f',
    500: '#522c78',
    950: '#000000',
  },
}
SCSS
$custom: #522c78;
$custom-light: #86679f;
$custom-dark: #000000;
JSON
{
  "hex": "#522c78",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 270,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38153,
    "c": 0.12624,
    "h": 304.1
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#522C78
secondary
#80A957
accent
#D65294
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522C78

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

Preview Lab → · Contrast checker → · Palette generator →

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