#521971#521971

#521971 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.145 H 310.5°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#521971
RGBrgb(82, 25, 113)
HSLhsl(279, 64%, 27%)
HSVhsv(279, 78%, 44%)
CMYKcmyk(27.4%, 77.9%, 0%, 55.7%)
CIE-LABlab(22.59, 41.31, -38.94)
CIE-LCHlch(22.59, 56.77, 316.69°)
OKLaboklab(35.11% 0.0942 -0.1103)
OKLCHoklch(35.11% 0.145 310.5)
XYZxyz(6.8074, 3.6815, 15.9716)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521971 #387119
analogous
#261971 #521971 #711964
triadic
#521971 #715219 #197152
tetradic
#521971 #712619 #387119 #196471
square
#521971 #712619 #387119 #196471
split-complementary
#521971 #647119 #197126
monochromatic
#120619 #2E0E3F #521971 #7624A3 #9A33D2

Accessibility & contrast

On white

12.10
#521971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#521971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521971
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521971#FFFFFF#000000##FFFFFF
##5219711.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#06376F
Tritanopia (blue-blind)
#4E2E44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521971;
/* rgb */ color: rgb(82, 25, 113);
/* oklch */ color: oklch(35.1% 0.145 310.5);
Tailwind
colors: {
  custom: {
    50: '#865c9a',
    500: '#521971',
    950: '#000000',
  },
}
SCSS
$custom: #521971;
$custom-light: #865c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521971",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 278.864,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35114,
    "c": 0.14506,
    "h": 310.5
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#521971
secondary
#64A640
accent
#E7417B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521971

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

Preview Lab → · Contrast checker → · Palette generator →

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