#520C27#520C27

#520C27 is a dark, moderate pink. Relative luminance 0.022; OKLCH L 29.4% C 0.103 H 3.3°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#520C27
RGBrgb(82, 12, 39)
HSLhsl(337, 74%, 18%)
HSVhsv(337, 85%, 32%)
CMYKcmyk(0%, 85.4%, 52.4%, 67.8%)
CIE-LABlab(16.52, 33.41, 2.14)
CIE-LCHlch(16.52, 33.48, 3.67°)
OKLaboklab(29.38% 0.1024 0.0058)
OKLCHoklch(29.38% 0.103 3.3)
XYZxyz(3.9777, 2.2038, 2.1350)
Luminance0.0220 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520C27 #0C5237
analogous
#520C4A #520C27 #52140C
triadic
#520C27 #27520C #0C2752
tetradic
#520C27 #4A520C #0C5237 #140C52
square
#520C27 #4A520C #0C5237 #140C52
split-complementary
#520C27 #0C5214 #0C4A52
monochromatic
#1B040D #1D040E #520C27 #871440 #BD1C5A

Accessibility & contrast

On white

14.58
#520C27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#520C27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520C27
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520C27#FFFFFF#000000##FFFFFF
##520C271.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2028
Deuteranopia (green-blind)
#302E25
Tritanopia (blue-blind)
#5A0018
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #520c27;
/* rgb */ color: rgb(82, 12, 39);
/* oklch */ color: oklch(29.4% 0.103 3.3);
Tailwind
colors: {
  custom: {
    50: '#875360',
    500: '#520c27',
    950: '#000000',
  },
}
SCSS
$custom: #520c27;
$custom-light: #875360;
$custom-dark: #000000;
JSON
{
  "hex": "#520c27",
  "rgb": {
    "r": 82,
    "g": 12,
    "b": 39
  },
  "hsl": {
    "h": 336.857,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.29375,
    "c": 0.10259,
    "h": 3.3
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#520C27
secondary
#2C8D68
accent
#F1A937
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #520C27

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

Preview Lab → · Contrast checker → · Palette generator →

#520C27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva