#520F31#520F31

#520F31 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.0% C 0.103 H 354.4°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#520F31
RGBrgb(82, 15, 49)
HSLhsl(330, 69%, 19%)
HSVhsv(330, 82%, 32%)
CMYKcmyk(0%, 81.7%, 40.2%, 67.8%)
CIE-LABlab(17.26, 33.47, -3.97)
CIE-LCHlch(17.26, 33.70, 353.23°)
OKLaboklab(30.04% 0.1027 -0.0101)
OKLCHoklch(30.04% 0.103 354.4)
XYZxyz(4.2051, 2.3578, 3.1388)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F31 #0F5230
analogous
#520F52 #520F31 #520F10
triadic
#520F31 #31520F #0F3152
tetradic
#520F31 #52520F #0F5230 #0F1052
square
#520F31 #52520F #0F5230 #0F1052
split-complementary
#520F31 #10520F #0F5252
monochromatic
#1A050F #1E0612 #520F31 #861850 #B9226F

Accessibility & contrast

On white

14.27
#520F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F31
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F31#FFFFFF#000000##FFFFFF
##520F311.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2332
Deuteranopia (green-blind)
#2F2F2F
Tritanopia (blue-blind)
#59081E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #520f31;
/* rgb */ color: rgb(82, 15, 49);
/* oklch */ color: oklch(30.0% 0.103 354.4);
Tailwind
colors: {
  custom: {
    50: '#865569',
    500: '#520f31',
    950: '#000000',
  },
}
SCSS
$custom: #520f31;
$custom-light: #865569;
$custom-dark: #000000;
JSON
{
  "hex": "#520f31",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 329.552,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30036,
    "c": 0.10321,
    "h": 354.4
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#520F31
secondary
#318C5E
accent
#EC933C
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #520F31

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

Preview Lab → · Contrast checker → · Palette generator →

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