#521373#521373

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

Color values

HEX#521373
RGBrgb(82, 19, 115)
HSLhsl(279, 72%, 26%)
HSVhsv(279, 83%, 45%)
CMYKcmyk(28.7%, 83.5%, 0%, 54.9%)
CIE-LABlab(21.94, 44.12, -41.29)
CIE-LCHlch(21.94, 60.43, 316.89°)
OKLaboklab(34.71% 0.0993 -0.1172)
OKLCHoklch(34.71% 0.154 310.3)
XYZxyz(6.8064, 3.4975, 16.5329)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521373 #347313
analogous
#221373 #521373 #731364
triadic
#521373 #735213 #137352
tetradic
#521373 #732213 #347313 #136473
square
#521373 #732213 #347313 #136473
split-complementary
#521373 #647313 #137322
monochromatic
#13041A #2D0A3E #521373 #771CA8 #9D25DB

Accessibility & contrast

On white

12.36
#521373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521373
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521373#FFFFFF#000000##FFFFFF
##5213731.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521373;
/* rgb */ color: rgb(82, 19, 115);
/* oklch */ color: oklch(34.7% 0.154 310.3);
Tailwind
colors: {
  custom: {
    50: '#875a9c',
    500: '#521373',
    950: '#000000',
  },
}
SCSS
$custom: #521373;
$custom-light: #875a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#521373",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 279.375,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34705,
    "c": 0.15361,
    "h": 310.3
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#521373
secondary
#5FAA38
accent
#EE3978
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521373

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

Preview Lab → · Contrast checker → · Palette generator →

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