#521481#521481

#521481 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.166 H 304.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#521481
RGBrgb(82, 20, 129)
HSLhsl(274, 73%, 29%)
HSVhsv(274, 84%, 51%)
CMYKcmyk(36.4%, 84.5%, 0%, 49.4%)
CIE-LABlab(23.27, 47.01, -48.05)
CIE-LCHlch(23.27, 67.22, 314.37°)
OKLaboklab(36.01% 0.0945 -0.137)
OKLCHoklch(36.01% 0.166 304.6)
XYZxyz(7.6914, 3.8792, 21.1082)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521481 #438114
analogous
#1B1481 #521481 #81147A
triadic
#521481 #815214 #148152
tetradic
#521481 #811B14 #438114 #147A81
square
#521481 #811B14 #438114 #147A81
split-complementary
#521481 #7A8114 #14811B
monochromatic
#11041A #300C4C #521481 #741CB6 #9430DF

Accessibility & contrast

On white

11.83
#521481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#521481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521481
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521481#FFFFFF#000000##FFFFFF
##5214811.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#49324C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521481;
/* rgb */ color: rgb(82, 20, 129);
/* oklch */ color: oklch(36.0% 0.166 304.6);
Tailwind
colors: {
  custom: {
    50: '#885ba6',
    500: '#521481',
    950: '#000000',
  },
}
SCSS
$custom: #521481;
$custom-light: #885ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#521481",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 274.128,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3601,
    "c": 0.16647,
    "h": 304.6
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#521481
secondary
#70B63B
accent
#F03887
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521481

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

Preview Lab → · Contrast checker → · Palette generator →

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