#522098#522098

#522098 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.179 H 295.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#522098
RGBrgb(82, 32, 152)
HSLhsl(265, 65%, 36%)
HSVhsv(265, 79%, 60%)
CMYKcmyk(46.1%, 78.9%, 0%, 40.4%)
CIE-LABlab(27.00, 48.01, -56.26)
CIE-LCHlch(27.00, 73.96, 310.48°)
OKLaboklab(39.25% 0.0779 -0.1612)
OKLCHoklch(39.25% 0.179 295.8)
XYZxyz(9.6622, 5.0936, 30.1738)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522098 #669820
analogous
#202A98 #522098 #8E2098
triadic
#522098 #985220 #209852
tetradic
#522098 #98202A #669820 #20988E
square
#522098 #98202A #669820 #20988E
split-complementary
#522098 #988E20 #2A9820
monochromatic
#1B0B33 #371565 #522098 #6D2BCB #8E57DC

Accessibility & contrast

On white

10.40
#522098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522098
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522098#FFFFFF#000000##FFFFFF
##5220981.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522098;
/* rgb */ color: rgb(82, 32, 152);
/* oklch */ color: oklch(39.3% 0.179 295.8);
Tailwind
colors: {
  custom: {
    50: '#8a62b7',
    500: '#522098',
    950: '#000000',
  },
}
SCSS
$custom: #522098;
$custom-light: #8a62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522098",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 265,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39251,
    "c": 0.17906,
    "h": 295.8
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

primary
#522098
secondary
#93BF54
accent
#E840A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #522098

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

Preview Lab → · Contrast checker → · Palette generator →

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