#522CA4#522CA4

#522CA4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.180 H 291.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#522CA4
RGBrgb(82, 44, 164)
HSLhsl(259, 58%, 41%)
HSVhsv(259, 73%, 64%)
CMYKcmyk(50%, 73.2%, 0%, 35.7%)
CIE-LABlab(30.10, 45.56, -58.49)
CIE-LCHlch(30.10, 74.14, 307.91°)
OKLaboklab(41.76% 0.0645 -0.1679)
OKLCHoklch(41.76% 0.18 291)
XYZxyz(11.0793, 6.2751, 35.7422)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CA4 #7EA42C
analogous
#2C42A4 #522CA4 #8E2CA4
triadic
#522CA4 #A4522C #2CA452
tetradic
#522CA4 #A42C42 #7EA42C #2CA48E
square
#522CA4 #A42C42 #7EA42C #2CA48E
split-complementary
#522CA4 #A48E2C #42A42C
monochromatic
#221243 #3A1F74 #522CA4 #6D41CC #9271D9

Accessibility & contrast

On white

9.31
#522CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#522CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CA4
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CA4#FFFFFF#000000##FFFFFF
##522CA41.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#374C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ca4;
/* rgb */ color: rgb(82, 44, 164);
/* oklch */ color: oklch(41.8% 0.180 291.0);
Tailwind
colors: {
  custom: {
    50: '#8b69c0',
    500: '#522ca4',
    950: '#000000',
  },
}
SCSS
$custom: #522ca4;
$custom-light: #8b69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#522ca4",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 259,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41761,
    "c": 0.17982,
    "h": 291
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#522CA4
secondary
#A5C06B
accent
#E147B0
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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