#522C9E#522C9E

#522C9E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.173 H 292.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#522C9E
RGBrgb(82, 44, 158)
HSLhsl(260, 56%, 40%)
HSVhsv(260, 72%, 62%)
CMYKcmyk(48.1%, 72.2%, 0%, 38%)
CIE-LABlab(29.57, 43.86, -55.71)
CIE-LCHlch(29.57, 70.91, 308.21°)
OKLaboklab(41.23% 0.0658 -0.1597)
OKLCHoklch(41.23% 0.173 292.4)
XYZxyz(10.5502, 6.0635, 32.9556)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C9E #789E2C
analogous
#2C3F9E #522C9E #8B2C9E
triadic
#522C9E #9E522C #2C9E52
tetradic
#522C9E #9E2C3F #789E2C #2C9E8B
square
#522C9E #9E2C3F #789E2C #2C9E8B
split-complementary
#522C9E #9E8B2C #3F9E2C
monochromatic
#20113E #391F6E #522C9E #6C3EC9 #916ED7

Accessibility & contrast

On white

9.49
#522C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#522C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C9E
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C9E#FFFFFF#000000##FFFFFF
##522C9E1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#3A4962
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522c9e;
/* rgb */ color: rgb(82, 44, 158);
/* oklch */ color: oklch(41.2% 0.173 292.4);
Tailwind
colors: {
  custom: {
    50: '#8a69bc',
    500: '#522c9e',
    950: '#000000',
  },
}
SCSS
$custom: #522c9e;
$custom-light: #8a69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#522c9e",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 260,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41227,
    "c": 0.17273,
    "h": 292.4
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#522C9E
secondary
#A1BE68
accent
#E048AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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