#520F2B#520F2B

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

Color values

HEX#520F2B
RGBrgb(82, 15, 43)
HSLhsl(335, 69%, 19%)
HSVhsv(335, 82%, 32%)
CMYKcmyk(0%, 81.7%, 47.6%, 67.8%)
CIE-LABlab(17.04, 32.76, -0.00)
CIE-LCHlch(17.04, 32.76, 360.00°)
OKLaboklab(29.8% 0.1006 0.0004)
OKLCHoklch(29.8% 0.101 0.2)
XYZxyz(4.0869, 2.3104, 2.5158)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F2B #0F5236
analogous
#520F4D #520F2B #52150F
triadic
#520F2B #2B520F #0F2B52
tetradic
#520F2B #4D520F #0F5236 #150F52
square
#520F2B #4D520F #0F5236 #150F52
split-complementary
#520F2B #0F5215 #0F4D52
monochromatic
#1A050E #1E0610 #520F2B #861846 #B92261

Accessibility & contrast

On white

14.36
#520F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F2B
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F2B#FFFFFF#000000##FFFFFF
##520F2B1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E222C
Deuteranopia (green-blind)
#302F29
Tritanopia (blue-blind)
#5A051B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #520f2b;
/* rgb */ color: rgb(82, 15, 43);
/* oklch */ color: oklch(29.8% 0.101 0.2);
Tailwind
colors: {
  custom: {
    50: '#865564',
    500: '#520f2b',
    950: '#000000',
  },
}
SCSS
$custom: #520f2b;
$custom-light: #865564;
$custom-dark: #000000;
JSON
{
  "hex": "#520f2b",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 43
  },
  "hsl": {
    "h": 334.925,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29799,
    "c": 0.10055,
    "h": 0.2
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#520F2B
secondary
#318C66
accent
#ECA23C
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #520F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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