#521042#521042

#521042 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.0% C 0.113 H 339.6°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#521042
RGBrgb(82, 16, 66)
HSLhsl(315, 67%, 19%)
HSVhsv(315, 80%, 32%)
CMYKcmyk(0%, 80.5%, 19.5%, 67.8%)
CIE-LABlab(18.18, 35.52, -14.56)
CIE-LCHlch(18.18, 38.39, 337.71°)
OKLaboklab(30.96% 0.1058 -0.0394)
OKLCHoklch(30.96% 0.113 339.6)
XYZxyz(4.6485, 2.5582, 5.4022)
Luminance0.0256 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521042 #105220
analogous
#411052 #521042 #521021
triadic
#521042 #425210 #104252
tetradic
#521042 #524110 #105220 #102152
square
#521042 #524110 #105220 #102152
split-complementary
#521042 #215210 #105241
monochromatic
#1A0515 #1F0619 #521042 #851A6B #B82494

Accessibility & contrast

On white

13.89
#521042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#521042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521042
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521042#FFFFFF#000000##FFFFFF
##5210421.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142643
Deuteranopia (green-blind)
#2A3040
Tritanopia (blue-blind)
#571227
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #521042;
/* rgb */ color: rgb(82, 16, 66);
/* oklch */ color: oklch(31.0% 0.113 339.6);
Tailwind
colors: {
  custom: {
    50: '#855676',
    500: '#521042',
    950: '#000000',
  },
}
SCSS
$custom: #521042;
$custom-light: #855676;
$custom-dark: #000000;
JSON
{
  "hex": "#521042",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 314.545,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.3096,
    "c": 0.11285,
    "h": 339.6
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#521042
secondary
#328C48
accent
#EA673E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #521042

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

Preview Lab → · Contrast checker → · Palette generator →

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