#521972#521972

#521972 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.146 H 310.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#521972
RGBrgb(82, 25, 114)
HSLhsl(278, 64%, 27%)
HSVhsv(278, 78%, 45%)
CMYKcmyk(28.1%, 78.1%, 0%, 55.3%)
CIE-LABlab(22.67, 41.54, -39.46)
CIE-LCHlch(22.67, 57.30, 316.47°)
OKLaboklab(35.19% 0.094 -0.1118)
OKLCHoklch(35.19% 0.146 310)
XYZxyz(6.8640, 3.7042, 16.2697)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521972 #397219
analogous
#261972 #521972 #721966
triadic
#521972 #725219 #197252
tetradic
#521972 #722619 #397219 #196672
square
#521972 #722619 #397219 #196672
split-complementary
#521972 #667219 #197226
monochromatic
#120619 #2E0E40 #521972 #7624A4 #9933D2

Accessibility & contrast

On white

12.06
#521972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521972
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521972#FFFFFF#000000##FFFFFF
##5219721.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#033770
Tritanopia (blue-blind)
#4D2E44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521972;
/* rgb */ color: rgb(82, 25, 114);
/* oklch */ color: oklch(35.2% 0.146 310.0);
Tailwind
colors: {
  custom: {
    50: '#865c9b',
    500: '#521972',
    950: '#000000',
  },
}
SCSS
$custom: #521972;
$custom-light: #865c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#521972",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 278.427,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35194,
    "c": 0.1461,
    "h": 310
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#521972
secondary
#65A740
accent
#E7417D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521972

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

Preview Lab → · Contrast checker → · Palette generator →

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