#522078#522078

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

Color values

HEX#522078
RGBrgb(82, 32, 120)
HSLhsl(274, 58%, 30%)
HSVhsv(274, 73%, 47%)
CMYKcmyk(31.7%, 73.3%, 0%, 52.9%)
CIE-LABlab(24.27, 39.80, -40.71)
CIE-LCHlch(24.27, 56.93, 314.35°)
OKLaboklab(36.48% 0.0855 -0.1156)
OKLCHoklch(36.48% 0.144 306.5)
XYZxyz(7.3856, 4.1830, 18.1840)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522078 #467820
analogous
#262078 #522078 #782072
triadic
#522078 #785220 #207852
tetradic
#522078 #782620 #467820 #207278
square
#522078 #782620 #467820 #207278
split-complementary
#522078 #727820 #207826
monochromatic
#110618 #311348 #522078 #732DA8 #9345CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522078#FFFFFF#000000##FFFFFF
##5220781.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)
#00387B
Deuteranopia (green-blind)
#023A76
Tritanopia (blue-blind)
#4B3449
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522078;
/* rgb */ color: rgb(82, 32, 120);
/* oklch */ color: oklch(36.5% 0.144 306.5);
Tailwind
colors: {
  custom: {
    50: '#8660a0',
    500: '#522078',
    950: '#000000',
  },
}
SCSS
$custom: #522078;
$custom-light: #8660a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522078",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 274.091,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36477,
    "c": 0.14374,
    "h": 306.5
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#522078
secondary
#73AB48
accent
#E14789
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #522078

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

Preview Lab → · Contrast checker → · Palette generator →

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