#522CA8#522CA8

#522CA8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.185 H 290.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#522CA8
RGBrgb(82, 44, 168)
HSLhsl(258, 58%, 42%)
HSVhsv(258, 74%, 66%)
CMYKcmyk(51.2%, 73.8%, 0%, 34.1%)
CIE-LABlab(30.45, 46.69, -60.32)
CIE-LCHlch(30.45, 76.27, 307.74°)
OKLaboklab(42.12% 0.0636 -0.1732)
OKLCHoklch(42.12% 0.185 290.1)
XYZxyz(11.4462, 6.4219, 37.6746)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CA8 #82A82C
analogous
#2C44A8 #522CA8 #902CA8
triadic
#522CA8 #A8522C #2CA852
tetradic
#522CA8 #A82C44 #82A82C #2CA890
square
#522CA8 #A82C44 #82A82C #2CA890
split-complementary
#522CA8 #A8902C #44A82C
monochromatic
#231347 #3A1F78 #522CA8 #6E43CE #9374DB

Accessibility & contrast

On white

9.19
#522CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#522CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CA8
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CA8#FFFFFF#000000##FFFFFF
##522CA81.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#344D67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522ca8;
/* rgb */ color: rgb(82, 44, 168);
/* oklch */ color: oklch(42.1% 0.185 290.1);
Tailwind
colors: {
  custom: {
    50: '#8b69c3',
    500: '#522ca8',
    950: '#000000',
  },
}
SCSS
$custom: #522ca8;
$custom-light: #8b69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#522ca8",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 258.387,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42122,
    "c": 0.18452,
    "h": 290.1
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

primary
#522CA8
secondary
#A8C26E
accent
#E246B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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