#522176#522176

#522176 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.140 H 307.1°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#522176
RGBrgb(82, 33, 118)
HSLhsl(275, 56%, 30%)
HSVhsv(275, 72%, 46%)
CMYKcmyk(30.5%, 72%, 0%, 53.7%)
CIE-LABlab(24.29, 38.81, -39.40)
CIE-LCHlch(24.29, 55.30, 314.57°)
OKLaboklab(36.44% 0.0846 -0.1117)
OKLCHoklch(36.44% 0.14 307.1)
XYZxyz(7.2929, 4.1896, 17.5605)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522176 #457621
analogous
#282176 #522176 #762170
triadic
#522176 #765221 #217652
tetradic
#522176 #762821 #457621 #217076
square
#522176 #762821 #457621 #217076
split-complementary
#522176 #707621 #217628
monochromatic
#110718 #311446 #522176 #732EA6 #9346CB

Accessibility & contrast

On white

11.43
#522176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#522176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522176
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522176#FFFFFF#000000##FFFFFF
##5221761.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#093A74
Tritanopia (blue-blind)
#4C3449
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522176;
/* rgb */ color: rgb(82, 33, 118);
/* oklch */ color: oklch(36.4% 0.140 307.1);
Tailwind
colors: {
  custom: {
    50: '#86619e',
    500: '#522176',
    950: '#000000',
  },
}
SCSS
$custom: #522176;
$custom-light: #86619e;
$custom-dark: #000000;
JSON
{
  "hex": "#522176",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 274.588,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36444,
    "c": 0.14016,
    "h": 307.1
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#522176
secondary
#72A94A
accent
#E04888
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522176

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

Preview Lab → · Contrast checker → · Palette generator →

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