#522072#522072

#522072 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.137 H 309.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#522072
RGBrgb(82, 32, 114)
HSLhsl(277, 56%, 29%)
HSVhsv(277, 72%, 45%)
CMYKcmyk(28.1%, 71.9%, 0%, 55.3%)
CIE-LABlab(23.81, 38.32, -37.61)
CIE-LCHlch(23.81, 53.69, 315.53°)
OKLaboklab(36% 0.0863 -0.1065)
OKLCHoklch(36% 0.137 309)
XYZxyz(7.0328, 4.0419, 16.3260)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522072 #407220
analogous
#292072 #522072 #722069
triadic
#522072 #725220 #207252
tetradic
#522072 #722920 #407220 #206972
square
#522072 #722920 #407220 #206972
split-complementary
#522072 #697220 #207229
monochromatic
#110718 #301342 #522072 #742DA2 #9542CA

Accessibility & contrast

On white

11.61
#522072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#522072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522072
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522072#FFFFFF#000000##FFFFFF
##5220721.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#103970
Tritanopia (blue-blind)
#4D3246
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522072;
/* rgb */ color: rgb(82, 32, 114);
/* oklch */ color: oklch(36.0% 0.137 309.0);
Tailwind
colors: {
  custom: {
    50: '#86609b',
    500: '#522072',
    950: '#000000',
  },
}
SCSS
$custom: #522072;
$custom-light: #86609b;
$custom-dark: #000000;
JSON
{
  "hex": "#522072",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 276.585,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36005,
    "c": 0.13707,
    "h": 309
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#522072
secondary
#6DA648
accent
#DF4883
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522072

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

Preview Lab → · Contrast checker → · Palette generator →

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