#521054#521054

#521054 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.128 H 326.8°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#521054
RGBrgb(82, 16, 84)
HSLhsl(298, 68%, 20%)
HSVhsv(298, 81%, 33%)
CMYKcmyk(2.4%, 81%, 0%, 67.1%)
CIE-LABlab(19.25, 38.68, -25.21)
CIE-LCHlch(19.25, 46.17, 326.91°)
OKLaboklab(32.07% 0.1069 -0.07)
OKLCHoklch(32.07% 0.128 326.8)
XYZxyz(5.2651, 2.8049, 8.6499)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521054 #125410
analogous
#301054 #521054 #541034
triadic
#521054 #545210 #105452
tetradic
#521054 #543010 #125410 #103454
square
#521054 #543010 #125410 #103454
split-complementary
#521054 #345410 #105430
monochromatic
#19051A #200621 #521054 #841A87 #B624BB

Accessibility & contrast

On white

13.45
#521054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#521054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521054
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521054#FFFFFF#000000##FFFFFF
##5210541.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#213252
Tritanopia (blue-blind)
#541C31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521054;
/* rgb */ color: rgb(82, 16, 84);
/* oklch */ color: oklch(32.1% 0.128 326.8);
Tailwind
colors: {
  custom: {
    50: '#855784',
    500: '#521054',
    950: '#000000',
  },
}
SCSS
$custom: #521054;
$custom-light: #855784;
$custom-dark: #000000;
JSON
{
  "hex": "#521054",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 298.235,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.3207,
    "c": 0.12775,
    "h": 326.8
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#521054
secondary
#358E32
accent
#EB3D42
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #521054

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

Preview Lab → · Contrast checker → · Palette generator →

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