#522178#522178

#522178 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.142 H 306.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#522178
RGBrgb(82, 33, 120)
HSLhsl(274, 57%, 30%)
HSVhsv(274, 73%, 47%)
CMYKcmyk(31.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(24.44, 39.31, -40.43)
CIE-LCHlch(24.44, 56.39, 314.19°)
OKLaboklab(36.6% 0.0844 -0.1147)
OKLCHoklch(36.6% 0.142 306.3)
XYZxyz(7.4130, 4.2377, 18.1931)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522178 #477821
analogous
#262178 #522178 #782173
triadic
#522178 #785221 #217852
tetradic
#522178 #782621 #477821 #217378
square
#522178 #782621 #477821 #217378
split-complementary
#522178 #737821 #217826
monochromatic
#100718 #311448 #522178 #732EA8 #9247CC

Accessibility & contrast

On white

11.37
#522178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522178
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522178#FFFFFF#000000##FFFFFF
##5221781.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#043A76
Tritanopia (blue-blind)
#4B354A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522178;
/* rgb */ color: rgb(82, 33, 120);
/* oklch */ color: oklch(36.6% 0.142 306.3);
Tailwind
colors: {
  custom: {
    50: '#8661a0',
    500: '#522178',
    950: '#000000',
  },
}
SCSS
$custom: #522178;
$custom-light: #8661a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522178",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 273.793,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.36602,
    "c": 0.14241,
    "h": 306.3
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#522178
secondary
#74AB4A
accent
#E0488A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #522178

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

Preview Lab → · Contrast checker → · Palette generator →

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