#522FA9#522FA9

#522FA9 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.182 H 289.4°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#522FA9
RGBrgb(82, 47, 169)
HSLhsl(257, 56%, 42%)
HSVhsv(257, 72%, 66%)
CMYKcmyk(51.5%, 72.2%, 0%, 33.7%)
CIE-LABlab(31.09, 45.42, -59.87)
CIE-LCHlch(31.09, 75.15, 307.19°)
OKLaboklab(42.6% 0.0607 -0.1719)
OKLCHoklch(42.6% 0.182 289.4)
XYZxyz(11.6556, 6.6909, 38.2058)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FA9 #86A92F
analogous
#2F49A9 #522FA9 #8F2FA9
triadic
#522FA9 #A9522F #2FA952
tetradic
#522FA9 #A92F49 #86A92F #2FA98F
square
#522FA9 #A92F49 #86A92F #2FA98F
split-complementary
#522FA9 #A98F2F #49A92F
monochromatic
#241449 #3B2279 #522FA9 #6F49CC #9579DA

Accessibility & contrast

On white

8.98
#522FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#522FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FA9
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FA9#FFFFFF#000000##FFFFFF
##522FA91.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#334F69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522fa9;
/* rgb */ color: rgb(82, 47, 169);
/* oklch */ color: oklch(42.6% 0.182 289.4);
Tailwind
colors: {
  custom: {
    50: '#8b6bc4',
    500: '#522fa9',
    950: '#000000',
  },
}
SCSS
$custom: #522fa9;
$custom-light: #8b6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#522fa9",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 257.213,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42603,
    "c": 0.18233,
    "h": 289.4
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#522FA9
secondary
#ABC272
accent
#E048B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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