#521472#521472

#521472 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.152 H 310.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#521472
RGBrgb(82, 20, 114)
HSLhsl(280, 70%, 26%)
HSVhsv(280, 82%, 45%)
CMYKcmyk(28.1%, 82.5%, 0%, 55.3%)
CIE-LABlab(21.98, 43.53, -40.58)
CIE-LCHlch(21.98, 59.51, 317.01°)
OKLaboklab(34.71% 0.0987 -0.1151)
OKLCHoklch(34.71% 0.152 310.6)
XYZxyz(6.7665, 3.5092, 16.2372)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521472 #347214
analogous
#231472 #521472 #721463
triadic
#521472 #725214 #147252
tetradic
#521472 #722314 #347214 #146372
square
#521472 #722314 #347214 #146372
split-complementary
#521472 #637214 #147223
monochromatic
#13051A #2D0B3E #521472 #771DA6 #9D27D9

Accessibility & contrast

On white

12.34
#521472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#521472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521472
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521472#FFFFFF#000000##FFFFFF
##5214721.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.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: #521472;
/* rgb */ color: rgb(82, 20, 114);
/* oklch */ color: oklch(34.7% 0.152 310.6);
Tailwind
colors: {
  custom: {
    50: '#875a9b',
    500: '#521472',
    950: '#000000',
  },
}
SCSS
$custom: #521472;
$custom-light: #875a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#521472",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 279.574,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34709,
    "c": 0.15162,
    "h": 310.6
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#521472
secondary
#5FA839
accent
#ED3B77
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521472

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

Preview Lab → · Contrast checker → · Palette generator →

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