#522A98#522A98

#522A98 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.168 H 294.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#522A98
RGBrgb(82, 42, 152)
HSLhsl(262, 57%, 38%)
HSVhsv(262, 72%, 60%)
CMYKcmyk(46.1%, 72.4%, 0%, 40.4%)
CIE-LABlab(28.69, 43.22, -53.50)
CIE-LCHlch(28.69, 68.78, 308.94°)
OKLaboklab(40.44% 0.069 -0.1532)
OKLCHoklch(40.44% 0.168 294.2)
XYZxyz(9.9736, 5.7165, 30.2776)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A98 #70982A
analogous
#2A3998 #522A98 #892A98
triadic
#522A98 #98522A #2A9852
tetradic
#522A98 #982A39 #70982A #2A9889
square
#522A98 #982A39 #70982A #2A9889
split-complementary
#522A98 #98892A #39982A
monochromatic
#1E1038 #381D68 #522A98 #6C37C8 #8F67D5

Accessibility & contrast

On white

9.80
#522A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#522A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A98
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A98#FFFFFF#000000##FFFFFF
##522A981.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#3E465E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522a98;
/* rgb */ color: rgb(82, 42, 152);
/* oklch */ color: oklch(40.4% 0.168 294.2);
Tailwind
colors: {
  custom: {
    50: '#8967b7',
    500: '#522a98',
    950: '#000000',
  },
}
SCSS
$custom: #522a98;
$custom-light: #8967b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522a98",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 261.818,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40438,
    "c": 0.168,
    "h": 294.2
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#522A98
secondary
#9BBB62
accent
#E048A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A98

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

Preview Lab → · Contrast checker → · Palette generator →

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