#521572#521572

#521572 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.151 H 310.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#521572
RGBrgb(82, 21, 114)
HSLhsl(279, 69%, 26%)
HSVhsv(279, 82%, 45%)
CMYKcmyk(28.1%, 81.6%, 0%, 55.3%)
CIE-LABlab(22.11, 43.16, -40.37)
CIE-LCHlch(22.11, 59.09, 316.91°)
OKLaboklab(34.8% 0.0978 -0.1145)
OKLCHoklch(34.8% 0.151 310.5)
XYZxyz(6.7845, 3.5452, 16.2432)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521572 #357215
analogous
#241572 #521572 #721564
triadic
#521572 #725215 #157252
tetradic
#521572 #722415 #357215 #156472
square
#521572 #722415 #357215 #156472
split-complementary
#521572 #647215 #157224
monochromatic
#13051A #2D0B3E #521572 #771FA6 #9C2AD8

Accessibility & contrast

On white

12.29
#521572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#521572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521572
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521572#FFFFFF#000000##FFFFFF
##5215721.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#4E2C43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521572;
/* rgb */ color: rgb(82, 21, 114);
/* oklch */ color: oklch(34.8% 0.151 310.5);
Tailwind
colors: {
  custom: {
    50: '#875a9b',
    500: '#521572',
    950: '#000000',
  },
}
SCSS
$custom: #521572;
$custom-light: #875a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#521572",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 279.355,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34799,
    "c": 0.15058,
    "h": 310.5
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#521572
secondary
#60A83B
accent
#EC3C79
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521572

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

Preview Lab → · Contrast checker → · Palette generator →

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