#521573#521573

#521573 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.152 H 310.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#521573
RGBrgb(82, 21, 115)
HSLhsl(279, 69%, 27%)
HSVhsv(279, 82%, 45%)
CMYKcmyk(28.7%, 81.7%, 0%, 54.9%)
CIE-LABlab(22.19, 43.38, -40.88)
CIE-LCHlch(22.19, 59.61, 316.70°)
OKLaboklab(34.88% 0.0976 -0.116)
OKLCHoklch(34.88% 0.152 310.1)
XYZxyz(6.8417, 3.5681, 16.5446)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521573 #367315
analogous
#231573 #521573 #731565
triadic
#521573 #735215 #157352
tetradic
#521573 #732315 #367315 #156573
square
#521573 #732315 #367315 #156573
split-complementary
#521573 #657315 #157323
monochromatic
#12051A #2D0C3F #521573 #771EA7 #9B2AD8

Accessibility & contrast

On white

12.25
#521573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521573
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521573#FFFFFF#000000##FFFFFF
##5215731.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#4D2C44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521573;
/* rgb */ color: rgb(82, 21, 115);
/* oklch */ color: oklch(34.9% 0.152 310.1);
Tailwind
colors: {
  custom: {
    50: '#875b9c',
    500: '#521573',
    950: '#000000',
  },
}
SCSS
$custom: #521573;
$custom-light: #875b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#521573",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 278.936,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34882,
    "c": 0.15158,
    "h": 310.1
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#521573
secondary
#61A93B
accent
#EC3C7A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521573

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

Preview Lab → · Contrast checker → · Palette generator →

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