#522A9C#522A9C

#522A9C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.173 H 293.2°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#522A9C
RGBrgb(82, 42, 156)
HSLhsl(261, 58%, 39%)
HSVhsv(261, 73%, 61%)
CMYKcmyk(47.4%, 73.1%, 0%, 38.8%)
CIE-LABlab(29.03, 44.34, -55.38)
CIE-LCHlch(29.03, 70.94, 308.68°)
OKLaboklab(40.79% 0.0681 -0.1587)
OKLCHoklch(40.79% 0.173 293.2)
XYZxyz(10.3067, 5.8497, 32.0321)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A9C #749C2A
analogous
#2A3B9C #522A9C #8B2A9C
triadic
#522A9C #9C522A #2A9C52
tetradic
#522A9C #9C2A3B #749C2A #2A9C8B
square
#522A9C #9C2A3B #749C2A #2A9C8B
split-complementary
#522A9C #9C8B2A #3B9C2A
monochromatic
#1F103C #391D6C #522A9C #6C39CA #906AD7

Accessibility & contrast

On white

9.68
#522A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#522A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A9C
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A9C#FFFFFF#000000##FFFFFF
##522A9C1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#3C4860
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522a9c;
/* rgb */ color: rgb(82, 42, 156);
/* oklch */ color: oklch(40.8% 0.173 293.2);
Tailwind
colors: {
  custom: {
    50: '#8a67ba',
    500: '#522a9c',
    950: '#000000',
  },
}
SCSS
$custom: #522a9c;
$custom-light: #8a67ba;
$custom-dark: #000000;
JSON
{
  "hex": "#522a9c",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 261.053,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40789,
    "c": 0.17271,
    "h": 293.2
  },
  "luminance": 0.0585
}

Semantic roles & 50–950 ramp

primary
#522A9C
secondary
#9EBD65
accent
#E147AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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