#521479#521479

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

Color values

HEX#521479
RGBrgb(82, 20, 121)
HSLhsl(277, 72%, 28%)
HSVhsv(277, 83%, 47%)
CMYKcmyk(32.2%, 83.5%, 0%, 52.5%)
CIE-LABlab(22.57, 45.14, -44.11)
CIE-LCHlch(22.57, 63.11, 315.66°)
OKLaboklab(35.3% 0.0969 -0.1255)
OKLCHoklch(35.3% 0.159 307.7)
XYZxyz(7.1803, 3.6747, 18.4165)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521479 #3B7914
analogous
#201479 #521479 #79146D
triadic
#521479 #795214 #147952
tetradic
#521479 #792014 #3B7914 #146D79
square
#521479 #792014 #3B7914 #146D79
split-complementary
#521479 #6D7914 #147920
monochromatic
#12041A #2E0B44 #521479 #761DAE #982BDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##521479#FFFFFF#000000##FFFFFF
##5214791.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)
#00347C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#4B2F47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521479;
/* rgb */ color: rgb(82, 20, 121);
/* oklch */ color: oklch(35.3% 0.159 307.7);
Tailwind
colors: {
  custom: {
    50: '#875aa0',
    500: '#521479',
    950: '#000000',
  },
}
SCSS
$custom: #521479;
$custom-light: #875aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#521479",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 276.832,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35303,
    "c": 0.15853,
    "h": 307.7
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#521479
secondary
#67AF3A
accent
#EE397F
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521479

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

Preview Lab → · Contrast checker → · Palette generator →

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