#522C98#522C98

#522C98 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.166 H 293.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#522C98
RGBrgb(82, 44, 152)
HSLhsl(261, 55%, 38%)
HSVhsv(261, 71%, 60%)
CMYKcmyk(46.1%, 71.1%, 0%, 40.4%)
CIE-LABlab(29.06, 42.18, -52.88)
CIE-LCHlch(29.06, 67.64, 308.57°)
OKLaboklab(40.71% 0.067 -0.1514)
OKLCHoklch(40.71% 0.166 293.9)
XYZxyz(10.0463, 5.8619, 30.3018)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C98 #72982C
analogous
#2C3C98 #522C98 #882C98
triadic
#522C98 #98522C #2C9852
tetradic
#522C98 #982C3C #72982C #2C9888
square
#522C98 #982C3C #72982C #2C9888
split-complementary
#522C98 #98882C #3C982C
monochromatic
#1F1139 #381E69 #522C98 #6C3BC6 #906AD4

Accessibility & contrast

On white

9.67
#522C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522C98
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C98#FFFFFF#000000##FFFFFF
##522C981.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#3E475F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522c98;
/* rgb */ color: rgb(82, 44, 152);
/* oklch */ color: oklch(40.7% 0.166 293.9);
Tailwind
colors: {
  custom: {
    50: '#8968b7',
    500: '#522c98',
    950: '#000000',
  },
}
SCSS
$custom: #522c98;
$custom-light: #8968b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522c98",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 261.111,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40705,
    "c": 0.16556,
    "h": 293.9
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

primary
#522C98
secondary
#9DBB65
accent
#DE49AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522C98

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

Preview Lab → · Contrast checker → · Palette generator →

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