#520F2A#520F2A

#520F2A is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.8% C 0.100 H 1.2°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#520F2A
RGBrgb(82, 15, 42)
HSLhsl(336, 69%, 19%)
HSVhsv(336, 82%, 32%)
CMYKcmyk(0%, 81.7%, 48.8%, 67.8%)
CIE-LABlab(17.00, 32.65, 0.67)
CIE-LCHlch(17.00, 32.66, 1.17°)
OKLaboklab(29.76% 0.1002 0.0021)
OKLCHoklch(29.76% 0.1 1.2)
XYZxyz(4.0687, 2.3032, 2.4203)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F2A #0F5237
analogous
#520F4C #520F2A #52160F
triadic
#520F2A #2A520F #0F2A52
tetradic
#520F2A #4C520F #0F5237 #160F52
square
#520F2A #4C520F #0F5237 #160F52
split-complementary
#520F2A #0F5216 #0F4C52
monochromatic
#1A050D #1E0610 #520F2A #861844 #B9225F

Accessibility & contrast

On white

14.38
#520F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#520F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F2A
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F2A#FFFFFF#000000##FFFFFF
##520F2A1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E222B
Deuteranopia (green-blind)
#302F28
Tritanopia (blue-blind)
#5A041B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #520f2a;
/* rgb */ color: rgb(82, 15, 42);
/* oklch */ color: oklch(29.8% 0.100 1.2);
Tailwind
colors: {
  custom: {
    50: '#875563',
    500: '#520f2a',
    950: '#000000',
  },
}
SCSS
$custom: #520f2a;
$custom-light: #875563;
$custom-dark: #000000;
JSON
{
  "hex": "#520f2a",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 42
  },
  "hsl": {
    "h": 335.821,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29762,
    "c": 0.10018,
    "h": 1.2
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#520F2A
secondary
#318C67
accent
#ECA53C
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #520F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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