#522198#522198

#522198 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.178 H 295.7°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#522198
RGBrgb(82, 33, 152)
HSLhsl(265, 64%, 36%)
HSVhsv(265, 78%, 60%)
CMYKcmyk(46.1%, 78.3%, 0%, 40.4%)
CIE-LABlab(27.15, 47.57, -56.00)
CIE-LCHlch(27.15, 73.48, 310.34°)
OKLaboklab(39.36% 0.0771 -0.1605)
OKLCHoklch(39.36% 0.178 295.7)
XYZxyz(9.6895, 5.1483, 30.1829)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522198 #679821
analogous
#212C98 #522198 #8E2198
triadic
#522198 #985221 #219852
tetradic
#522198 #98212C #679821 #21988E
square
#522198 #98212C #679821 #21988E
split-complementary
#522198 #988E21 #2C9821
monochromatic
#1C0B33 #371666 #522198 #6D2CCA #8E59DB

Accessibility & contrast

On white

10.35
#522198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522198
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522198#FFFFFF#000000##FFFFFF
##5221981.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#3E425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522198;
/* rgb */ color: rgb(82, 33, 152);
/* oklch */ color: oklch(39.4% 0.178 295.7);
Tailwind
colors: {
  custom: {
    50: '#8a62b7',
    500: '#522198',
    950: '#000000',
  },
}
SCSS
$custom: #522198;
$custom-light: #8a62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522198",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 264.706,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39358,
    "c": 0.17806,
    "h": 295.7
  },
  "luminance": 0.05149
}

Semantic roles & 50–950 ramp

primary
#522198
secondary
#94BF56
accent
#E740A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #522198

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

Preview Lab → · Contrast checker → · Palette generator →

#522198 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva