#522179#522179

#522179 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.144 H 305.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#522179
RGBrgb(82, 33, 121)
HSLhsl(273, 57%, 30%)
HSVhsv(273, 73%, 47%)
CMYKcmyk(32.2%, 72.7%, 0%, 52.5%)
CIE-LABlab(24.52, 39.56, -40.94)
CIE-LCHlch(24.52, 56.93, 314.02°)
OKLaboklab(36.68% 0.0842 -0.1162)
OKLCHoklch(36.68% 0.144 305.9)
XYZxyz(7.4740, 4.2621, 18.5144)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522179 #487921
analogous
#262179 #522179 #792174
triadic
#522179 #795221 #217952
tetradic
#522179 #792621 #487921 #217479
square
#522179 #792621 #487921 #217479
split-complementary
#522179 #747921 #217926
monochromatic
#110719 #311449 #522179 #732EA9 #9247CD

Accessibility & contrast

On white

11.34
#522179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#522179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522179
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522179#FFFFFF#000000##FFFFFF
##5221791.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#023A77
Tritanopia (blue-blind)
#4B354A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522179;
/* rgb */ color: rgb(82, 33, 121);
/* oklch */ color: oklch(36.7% 0.144 305.9);
Tailwind
colors: {
  custom: {
    50: '#8661a0',
    500: '#522179',
    950: '#000000',
  },
}
SCSS
$custom: #522179;
$custom-light: #8661a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522179",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 273.409,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36681,
    "c": 0.14353,
    "h": 305.9
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#522179
secondary
#75AC4A
accent
#E0478B
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #522179

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

Preview Lab → · Contrast checker → · Palette generator →

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