#521242#521242

#521242 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.2% C 0.110 H 339.7°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#521242
RGBrgb(82, 18, 66)
HSLhsl(315, 64%, 20%)
HSVhsv(315, 78%, 32%)
CMYKcmyk(0%, 78%, 19.5%, 67.8%)
CIE-LABlab(18.45, 34.75, -14.13)
CIE-LCHlch(18.45, 37.51, 337.86°)
OKLaboklab(31.16% 0.1034 -0.0382)
OKLCHoklch(31.16% 0.11 339.7)
XYZxyz(4.6795, 2.6202, 5.4125)
Luminance0.0262 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521242 #125222
analogous
#421252 #521242 #521222
triadic
#521242 #425212 #124252
tetradic
#521242 #524212 #125222 #122252
square
#521242 #524212 #125222 #122252
split-complementary
#521242 #225212 #125242
monochromatic
#190614 #20071A #521242 #841D6A #B62893

Accessibility & contrast

On white

13.78
#521242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#521242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521242
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521242#FFFFFF#000000##FFFFFF
##5212421.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162643
Deuteranopia (green-blind)
#2B3140
Tritanopia (blue-blind)
#571428
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #521242;
/* rgb */ color: rgb(82, 18, 66);
/* oklch */ color: oklch(31.2% 0.110 339.7);
Tailwind
colors: {
  custom: {
    50: '#855776',
    500: '#521242',
    950: '#000000',
  },
}
SCSS
$custom: #521242;
$custom-light: #855776;
$custom-dark: #000000;
JSON
{
  "hex": "#521242",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 315,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31159,
    "c": 0.11024,
    "h": 339.7
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#521242
secondary
#358B4A
accent
#E76A41
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #521242

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

Preview Lab → · Contrast checker → · Palette generator →

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