#522C94#522C94

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

Color values

HEX#522C94
RGBrgb(82, 44, 148)
HSLhsl(262, 54%, 38%)
HSVhsv(262, 70%, 58%)
CMYKcmyk(44.6%, 70.3%, 0%, 42%)
CIE-LABlab(28.73, 41.06, -50.97)
CIE-LCHlch(28.73, 65.45, 308.85°)
OKLaboklab(40.36% 0.0677 -0.1458)
OKLCHoklch(40.36% 0.161 294.9)
XYZxyz(9.7242, 5.7331, 28.6055)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C94 #6E942C
analogous
#2C3A94 #522C94 #862C94
triadic
#522C94 #94522C #2C9452
tetradic
#522C94 #942C3A #6E942C #2C9486
square
#522C94 #942C3A #6E942C #2C9486
split-complementary
#522C94 #94862C #3A942C
monochromatic
#1E1036 #381E65 #522C94 #6C3AC3 #8F68D2

Accessibility & contrast

On white

9.78
#522C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#522C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C94
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C94#FFFFFF#000000##FFFFFF
##522C941.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#40465C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522c94;
/* rgb */ color: rgb(82, 44, 148);
/* oklch */ color: oklch(40.4% 0.161 294.9);
Tailwind
colors: {
  custom: {
    50: '#8968b4',
    500: '#522c94',
    950: '#000000',
  },
}
SCSS
$custom: #522c94;
$custom-light: #8968b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522c94",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 261.923,
    "s": 54.167,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40364,
    "c": 0.16075,
    "h": 294.9
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#522C94
secondary
#99B963
accent
#DE4AA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522C94

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

Preview Lab → · Contrast checker → · Palette generator →

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