#522CAC#522CAC

#522CAC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.189 H 289.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#522CAC
RGBrgb(82, 44, 172)
HSLhsl(258, 59%, 42%)
HSVhsv(258, 74%, 67%)
CMYKcmyk(52.3%, 74.4%, 0%, 32.5%)
CIE-LABlab(30.81, 47.82, -62.13)
CIE-LCHlch(30.81, 78.40, 307.58°)
OKLaboklab(42.49% 0.0626 -0.1785)
OKLCHoklch(42.49% 0.189 289.3)
XYZxyz(11.8246, 6.5732, 39.6674)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CAC #86AC2C
analogous
#2C46AC #522CAC #922CAC
triadic
#522CAC #AC522C #2CAC52
tetradic
#522CAC #AC2C46 #86AC2C #2CAC92
square
#522CAC #AC2C46 #86AC2C #2CAC92
split-complementary
#522CAC #AC922C #46AC2C
monochromatic
#24134B #3B207B #522CAC #6F46D0 #9576DC

Accessibility & contrast

On white

9.07
#522CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#522CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CAC
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CAC#FFFFFF#000000##FFFFFF
##522CAC1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#314F6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522cac;
/* rgb */ color: rgb(82, 44, 172);
/* oklch */ color: oklch(42.5% 0.189 289.3);
Tailwind
colors: {
  custom: {
    50: '#8c69c6',
    500: '#522cac',
    950: '#000000',
  },
}
SCSS
$custom: #522cac;
$custom-light: #8c69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#522cac",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 257.813,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42489,
    "c": 0.18919,
    "h": 289.3
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#522CAC
secondary
#ABC470
accent
#E245B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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