#520F21#520F21

#520F21 is a dark, moderate pink. Relative luminance 0.022; OKLCH L 29.5% C 0.098 H 10.1°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#520F21
RGBrgb(82, 15, 33)
HSLhsl(344, 69%, 19%)
HSVhsv(344, 82%, 32%)
CMYKcmyk(0%, 81.7%, 59.8%, 67.8%)
CIE-LABlab(16.73, 31.76, 6.78)
CIE-LCHlch(16.73, 32.48, 12.05°)
OKLaboklab(29.47% 0.0964 0.0172)
OKLCHoklch(29.47% 0.098 10.1)
XYZxyz(3.9254, 2.2458, 1.6653)
Luminance0.0225 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F21 #0F5240
analogous
#520F43 #520F21 #521F0F
triadic
#520F21 #21520F #0F2152
tetradic
#520F21 #43520F #0F5240 #1F0F52
square
#520F21 #43520F #0F5240 #1F0F52
split-complementary
#520F21 #0F521F #0F4352
monochromatic
#1A050A #1E060C #520F21 #861836 #B9224B

Accessibility & contrast

On white

14.49
#520F21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#520F21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F21
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F21#FFFFFF#000000##FFFFFF
##520F211.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202121
Deuteranopia (green-blind)
#322E1F
Tritanopia (blue-blind)
#5A0017
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #520f21;
/* rgb */ color: rgb(82, 15, 33);
/* oklch */ color: oklch(29.5% 0.098 10.1);
Tailwind
colors: {
  custom: {
    50: '#87545b',
    500: '#520f21',
    950: '#000000',
  },
}
SCSS
$custom: #520f21;
$custom-light: #87545b;
$custom-dark: #000000;
JSON
{
  "hex": "#520f21",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 33
  },
  "hsl": {
    "h": 343.881,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29468,
    "c": 0.09787,
    "h": 10.1
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#520F21
secondary
#318C74
accent
#ECBD3C
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #520F21

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

Preview Lab → · Contrast checker → · Palette generator →

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