#520F40#520F40

#520F40 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.8% C 0.113 H 341.1°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#520F40
RGBrgb(82, 15, 64)
HSLhsl(316, 69%, 19%)
HSVhsv(316, 82%, 32%)
CMYKcmyk(0%, 81.7%, 22%, 67.8%)
CIE-LABlab(17.95, 35.58, -13.53)
CIE-LCHlch(17.95, 38.06, 339.18°)
OKLaboklab(30.76% 0.1066 -0.0364)
OKLCHoklch(30.76% 0.113 341.1)
XYZxyz(4.5761, 2.5061, 5.0922)
Luminance0.0251 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F40 #0F5221
analogous
#430F52 #520F40 #520F1F
triadic
#520F40 #40520F #0F4052
tetradic
#520F40 #52430F #0F5221 #0F1F52
square
#520F40 #52430F #0F5221 #0F1F52
split-complementary
#520F40 #1F520F #0F5243
monochromatic
#1A0514 #1E0618 #520F40 #861868 #B92291

Accessibility & contrast

On white

13.99
#520F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#520F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F40
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F40#FFFFFF#000000##FFFFFF
##520F401.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#2A303E
Tritanopia (blue-blind)
#571126
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520f40;
/* rgb */ color: rgb(82, 15, 64);
/* oklch */ color: oklch(30.8% 0.113 341.1);
Tailwind
colors: {
  custom: {
    50: '#855575',
    500: '#520f40',
    950: '#000000',
  },
}
SCSS
$custom: #520f40;
$custom-light: #855575;
$custom-dark: #000000;
JSON
{
  "hex": "#520f40",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 316.119,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30757,
    "c": 0.11261,
    "h": 341.1
  },
  "luminance": 0.02506
}

Semantic roles & 50–950 ramp

primary
#520F40
secondary
#318C49
accent
#EC6B3C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #520F40

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

Preview Lab → · Contrast checker → · Palette generator →

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