#520B21#520B21

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

Color values

HEX#520B21
RGBrgb(82, 11, 33)
HSLhsl(341, 76%, 18%)
HSVhsv(341, 87%, 32%)
CMYKcmyk(0%, 86.6%, 59.8%, 67.8%)
CIE-LABlab(16.22, 33.18, 6.08)
CIE-LCHlch(16.22, 33.74, 10.39°)
OKLaboklab(29.1% 0.1009 0.0155)
OKLCHoklch(29.1% 0.102 8.7)
XYZxyz(3.8742, 2.1435, 1.6483)
Luminance0.0214 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B21 #0B523C
analogous
#520B44 #520B21 #52180B
triadic
#520B21 #21520B #0B2152
tetradic
#520B21 #44520B #0B523C #180B52
square
#520B21 #44520B #0B523C #180B52
split-complementary
#520B21 #0B5218 #0B4452
monochromatic
#1B040B #1C040B #520B21 #881237 #BE194C

Accessibility & contrast

On white

14.70
#520B21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520B21
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B21#FFFFFF#000000##FFFFFF
##520B211.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1F21
Deuteranopia (green-blind)
#312D1F
Tritanopia (blue-blind)
#5A0015
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #520b21;
/* rgb */ color: rgb(82, 11, 33);
/* oklch */ color: oklch(29.1% 0.102 8.7);
Tailwind
colors: {
  custom: {
    50: '#87535b',
    500: '#520b21',
    950: '#000000',
  },
}
SCSS
$custom: #520b21;
$custom-light: #87535b;
$custom-dark: #000000;
JSON
{
  "hex": "#520b21",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 33
  },
  "hsl": {
    "h": 341.408,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.29096,
    "c": 0.10211,
    "h": 8.7
  },
  "luminance": 0.02143
}

Semantic roles & 50–950 ramp

primary
#520B21
secondary
#2B8E6F
accent
#F3B835
background
#F8F4F5
surface
#F0E8E9
border
#CBC4C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #520B21

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

Preview Lab → · Contrast checker → · Palette generator →

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