#520B1F#520B1F

#520B1F is a dark, moderate pink. Relative luminance 0.021; OKLCH L 29.0% C 0.102 H 10.6°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#520B1F
RGBrgb(82, 11, 31)
HSLhsl(343, 76%, 18%)
HSVhsv(343, 87%, 32%)
CMYKcmyk(0%, 86.6%, 62.2%, 67.8%)
CIE-LABlab(16.17, 33.01, 7.46)
CIE-LCHlch(16.17, 33.85, 12.74°)
OKLaboklab(29.04% 0.1 0.0187)
OKLCHoklch(29.04% 0.102 10.6)
XYZxyz(3.8471, 2.1327, 1.5051)
Luminance0.0213 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B1F #0B523E
analogous
#520B42 #520B1F #521B0B
triadic
#520B1F #1F520B #0B1F52
tetradic
#520B1F #42520B #0B523E #1B0B52
square
#520B1F #42520B #0B523E #1B0B52
split-complementary
#520B1F #0B521B #0B4252
monochromatic
#1B040A #1C040B #520B1F #881233 #BE1948

Accessibility & contrast

On white

14.72
#520B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#520B1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520B1F
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B1F#FFFFFF#000000##FFFFFF
##520B1F1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1F1F
Deuteranopia (green-blind)
#312D1D
Tritanopia (blue-blind)
#5A0014
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #520b1f;
/* rgb */ color: rgb(82, 11, 31);
/* oklch */ color: oklch(29.0% 0.102 10.6);
Tailwind
colors: {
  custom: {
    50: '#88535a',
    500: '#520b1f',
    950: '#000000',
  },
}
SCSS
$custom: #520b1f;
$custom-light: #88535a;
$custom-dark: #000000;
JSON
{
  "hex": "#520b1f",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 31
  },
  "hsl": {
    "h": 343.099,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.29038,
    "c": 0.10177,
    "h": 10.6
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#520B1F
secondary
#2B8E72
accent
#F3BD35
background
#F8F4F5
surface
#F0E7E9
border
#CBC3C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #520B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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