#521240#521240

#521240 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.1% C 0.109 H 341.4°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#521240
RGBrgb(82, 18, 64)
HSLhsl(317, 64%, 20%)
HSVhsv(317, 78%, 32%)
CMYKcmyk(0%, 78%, 22%, 67.8%)
CIE-LABlab(18.35, 34.43, -12.90)
CIE-LCHlch(18.35, 36.76, 339.46°)
OKLaboklab(31.05% 0.1031 -0.0347)
OKLCHoklch(31.05% 0.109 341.4)
XYZxyz(4.6215, 2.5971, 5.1074)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521240 #125224
analogous
#441252 #521240 #521220
triadic
#521240 #405212 #124052
tetradic
#521240 #524412 #125224 #122052
square
#521240 #524412 #125224 #122052
split-complementary
#521240 #205212 #125244
monochromatic
#190614 #200719 #521240 #841D67 #B6288E

Accessibility & contrast

On white

13.82
#521240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521240
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521240#FFFFFF#000000##FFFFFF
##5212401.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172641
Deuteranopia (green-blind)
#2B303F
Tritanopia (blue-blind)
#571327
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #521240;
/* rgb */ color: rgb(82, 18, 64);
/* oklch */ color: oklch(31.1% 0.109 341.4);
Tailwind
colors: {
  custom: {
    50: '#855775',
    500: '#521240',
    950: '#000000',
  },
}
SCSS
$custom: #521240;
$custom-light: #855775;
$custom-dark: #000000;
JSON
{
  "hex": "#521240",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 316.875,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31052,
    "c": 0.10873,
    "h": 341.4
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#521240
secondary
#358B4D
accent
#E77041
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #521240

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

Preview Lab → · Contrast checker → · Palette generator →

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