#521372#521372

#521372 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.153 H 310.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#521372
RGBrgb(82, 19, 114)
HSLhsl(280, 71%, 26%)
HSVhsv(280, 83%, 45%)
CMYKcmyk(28.1%, 83.3%, 0%, 55.3%)
CIE-LABlab(21.85, 43.89, -40.78)
CIE-LCHlch(21.85, 59.91, 317.10°)
OKLaboklab(34.62% 0.0996 -0.1157)
OKLCHoklch(34.62% 0.153 310.7)
XYZxyz(6.7492, 3.4747, 16.2315)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521372 #337213
analogous
#221372 #521372 #721362
triadic
#521372 #725213 #137252
tetradic
#521372 #722213 #337213 #136272
square
#521372 #722213 #337213 #136272
split-complementary
#521372 #627213 #137222
monochromatic
#13041A #2C0A3E #521372 #781CA6 #9D25DB

Accessibility & contrast

On white

12.39
#521372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#521372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521372
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521372#FFFFFF#000000##FFFFFF
##5213721.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#4E2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521372;
/* rgb */ color: rgb(82, 19, 114);
/* oklch */ color: oklch(34.6% 0.153 310.7);
Tailwind
colors: {
  custom: {
    50: '#875a9b',
    500: '#521372',
    950: '#000000',
  },
}
SCSS
$custom: #521372;
$custom-light: #875a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#521372",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 279.789,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34621,
    "c": 0.15263,
    "h": 310.7
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#521372
secondary
#5EA938
accent
#EE3A76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521372

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

Preview Lab → · Contrast checker → · Palette generator →

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