#520F2C#520F2C

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

Color values

HEX#520F2C
RGBrgb(82, 15, 44)
HSLhsl(334, 69%, 19%)
HSVhsv(334, 82%, 32%)
CMYKcmyk(0%, 81.7%, 46.3%, 67.8%)
CIE-LABlab(17.07, 32.87, -0.67)
CIE-LCHlch(17.07, 32.88, 358.83°)
OKLaboklab(29.84% 0.1009 -0.0014)
OKLCHoklch(29.84% 0.101 359.2)
XYZxyz(4.1054, 2.3179, 2.6136)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F2C #0F5235
analogous
#520F4E #520F2C #52140F
triadic
#520F2C #2C520F #0F2C52
tetradic
#520F2C #4E520F #0F5235 #140F52
square
#520F2C #4E520F #0F5235 #140F52
split-complementary
#520F2C #0F5214 #0F4E52
monochromatic
#1A050E #1E0610 #520F2C #861848 #B92264

Accessibility & contrast

On white

14.35
#520F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F2C
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F2C#FFFFFF#000000##FFFFFF
##520F2C1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E222D
Deuteranopia (green-blind)
#302F2A
Tritanopia (blue-blind)
#5A051C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #520f2c;
/* rgb */ color: rgb(82, 15, 44);
/* oklch */ color: oklch(29.8% 0.101 359.2);
Tailwind
colors: {
  custom: {
    50: '#865564',
    500: '#520f2c',
    950: '#000000',
  },
}
SCSS
$custom: #520f2c;
$custom-light: #865564;
$custom-dark: #000000;
JSON
{
  "hex": "#520f2c",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 334.03,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29836,
    "c": 0.10095,
    "h": 359.2
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#520F2C
secondary
#318C65
accent
#ECA03C
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0305
muted
#7D787A

Preview Lab

Preview with #520F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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