#522197#522197

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

Color values

HEX#522197
RGBrgb(82, 33, 151)
HSLhsl(265, 64%, 36%)
HSVhsv(265, 78%, 59%)
CMYKcmyk(45.7%, 78.1%, 0%, 40.8%)
CIE-LABlab(27.06, 47.31, -55.54)
CIE-LCHlch(27.06, 72.96, 310.42°)
OKLaboklab(39.27% 0.0774 -0.1591)
OKLCHoklch(39.27% 0.177 295.9)
XYZxyz(9.6080, 5.1157, 29.7534)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522197 #669721
analogous
#212B97 #522197 #8D2197
triadic
#522197 #975221 #219752
tetradic
#522197 #97212B #669721 #21978D
square
#522197 #97212B #669721 #21978D
split-complementary
#522197 #978D21 #2B9721
monochromatic
#1B0B33 #371665 #522197 #6D2CC9 #8E58DA

Accessibility & contrast

On white

10.38
#522197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522197
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522197#FFFFFF#000000##FFFFFF
##5221971.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#3F415B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522197;
/* rgb */ color: rgb(82, 33, 151);
/* oklch */ color: oklch(39.3% 0.177 295.9);
Tailwind
colors: {
  custom: {
    50: '#8a62b7',
    500: '#522197',
    950: '#000000',
  },
}
SCSS
$custom: #522197;
$custom-light: #8a62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522197",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 264.915,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39266,
    "c": 0.17695,
    "h": 295.9
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#522197
secondary
#93BE55
accent
#E741A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522197

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

Preview Lab → · Contrast checker → · Palette generator →

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