#521474#521474

#521474 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.154 H 309.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#521474
RGBrgb(82, 20, 116)
HSLhsl(279, 71%, 27%)
HSVhsv(279, 83%, 45%)
CMYKcmyk(29.3%, 82.8%, 0%, 54.5%)
CIE-LABlab(22.14, 43.99, -41.60)
CIE-LCHlch(22.14, 60.54, 316.60°)
OKLaboklab(34.88% 0.0982 -0.1181)
OKLCHoklch(34.88% 0.154 309.8)
XYZxyz(6.8816, 3.5552, 16.8433)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521474 #367414
analogous
#221474 #521474 #741466
triadic
#521474 #745214 #147452
tetradic
#521474 #742214 #367414 #146674
square
#521474 #742214 #367414 #146674
split-complementary
#521474 #667414 #147422
monochromatic
#12051A #2D0B40 #521474 #771DA8 #9B28DA

Accessibility & contrast

On white

12.27
#521474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#521474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521474
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521474#FFFFFF#000000##FFFFFF
##5214741.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4D2C44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521474;
/* rgb */ color: rgb(82, 20, 116);
/* oklch */ color: oklch(34.9% 0.154 309.8);
Tailwind
colors: {
  custom: {
    50: '#875a9d',
    500: '#521474',
    950: '#000000',
  },
}
SCSS
$custom: #521474;
$custom-light: #875a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521474",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 278.75,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34876,
    "c": 0.1536,
    "h": 309.8
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#521474
secondary
#61AA3A
accent
#ED3A7A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521474

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

Preview Lab → · Contrast checker → · Palette generator →

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