#521478#521478

#521478 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.158 H 308.1°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#521478
RGBrgb(82, 20, 120)
HSLhsl(277, 71%, 27%)
HSVhsv(277, 83%, 47%)
CMYKcmyk(31.7%, 83.3%, 0%, 52.9%)
CIE-LABlab(22.48, 44.91, -43.61)
CIE-LCHlch(22.48, 62.60, 315.84°)
OKLaboklab(35.22% 0.0972 -0.124)
OKLCHoklch(35.22% 0.158 308.1)
XYZxyz(7.1193, 3.6503, 18.0952)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521478 #3A7814
analogous
#201478 #521478 #78146C
triadic
#521478 #785214 #147852
tetradic
#521478 #782014 #3A7814 #146C78
square
#521478 #782014 #3A7814 #146C78
split-complementary
#521478 #6C7814 #147820
monochromatic
#12041A #2E0B44 #521478 #761DAC #982BDC

Accessibility & contrast

On white

12.14
#521478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#521478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521478
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521478#FFFFFF#000000##FFFFFF
##5214781.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#4C2E47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521478;
/* rgb */ color: rgb(82, 20, 120);
/* oklch */ color: oklch(35.2% 0.158 308.1);
Tailwind
colors: {
  custom: {
    50: '#875aa0',
    500: '#521478',
    950: '#000000',
  },
}
SCSS
$custom: #521478;
$custom-light: #875aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#521478",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 277.2,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35217,
    "c": 0.15755,
    "h": 308.1
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#521478
secondary
#66AE3A
accent
#EE3A7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521478

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

Preview Lab → · Contrast checker → · Palette generator →

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