#520F2F#520F2F

#520F2F is a dark, moderate pink. Relative luminance 0.023; OKLCH L 30.0% C 0.102 H 356.3°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#520F2F
RGBrgb(82, 15, 47)
HSLhsl(331, 69%, 19%)
HSVhsv(331, 82%, 32%)
CMYKcmyk(0%, 81.7%, 42.7%, 67.8%)
CIE-LABlab(17.18, 33.22, -2.66)
CIE-LCHlch(17.18, 33.33, 355.42°)
OKLaboklab(29.95% 0.102 -0.0066)
OKLCHoklch(29.95% 0.102 356.3)
XYZxyz(4.1639, 2.3412, 2.9214)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F2F #0F5232
analogous
#520F51 #520F2F #52110F
triadic
#520F2F #2F520F #0F2F52
tetradic
#520F2F #51520F #0F5232 #110F52
square
#520F2F #51520F #0F5232 #110F52
split-complementary
#520F2F #0F5211 #0F5152
monochromatic
#1A050F #1E0611 #520F2F #86184D #B9226A

Accessibility & contrast

On white

14.30
#520F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#520F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F2F
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F2F#FFFFFF#000000##FFFFFF
##520F2F1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2230
Deuteranopia (green-blind)
#2F2F2D
Tritanopia (blue-blind)
#59071D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #520f2f;
/* rgb */ color: rgb(82, 15, 47);
/* oklch */ color: oklch(30.0% 0.102 356.3);
Tailwind
colors: {
  custom: {
    50: '#865567',
    500: '#520f2f',
    950: '#000000',
  },
}
SCSS
$custom: #520f2f;
$custom-light: #865567;
$custom-dark: #000000;
JSON
{
  "hex": "#520f2f",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 331.343,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29954,
    "c": 0.10225,
    "h": 356.3
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#520F2F
secondary
#318C60
accent
#EC983C
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #520F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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