#522AA8#522AA8

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

Color values

HEX#522AA8
RGBrgb(82, 42, 168)
HSLhsl(259, 60%, 41%)
HSVhsv(259, 75%, 66%)
CMYKcmyk(51.2%, 75%, 0%, 34.1%)
CIE-LABlab(30.10, 47.69, -60.90)
CIE-LCHlch(30.10, 77.35, 308.06°)
OKLaboklab(41.87% 0.0653 -0.1749)
OKLCHoklch(41.87% 0.187 290.5)
XYZxyz(11.3735, 6.2764, 37.6504)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AA8 #80A82A
analogous
#2A41A8 #522AA8 #912AA8
triadic
#522AA8 #A8522A #2AA852
tetradic
#522AA8 #A82A41 #80A82A #2AA891
square
#522AA8 #A82A41 #80A82A #2AA891
split-complementary
#522AA8 #A8912A #41A82A
monochromatic
#221246 #3A1E77 #522AA8 #6D40CF #9371DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522AA8#FFFFFF#000000##FFFFFF
##522AA81.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)
#0049AC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#344C67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522aa8;
/* rgb */ color: rgb(82, 42, 168);
/* oklch */ color: oklch(41.9% 0.187 290.5);
Tailwind
colors: {
  custom: {
    50: '#8b68c3',
    500: '#522aa8',
    950: '#000000',
  },
}
SCSS
$custom: #522aa8;
$custom-light: #8b68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#522aa8",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 259.048,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41873,
    "c": 0.18669,
    "h": 290.5
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#522AA8
secondary
#A7C36B
accent
#E345B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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