#520B1B#520B1B

#520B1B is a dark, moderate red. Relative luminance 0.021; OKLCH L 28.9% C 0.101 H 14.3°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#520B1B
RGBrgb(82, 11, 27)
HSLhsl(346, 76%, 18%)
HSVhsv(346, 87%, 32%)
CMYKcmyk(0%, 86.6%, 67.1%, 67.8%)
CIE-LABlab(16.07, 32.71, 10.24)
CIE-LCHlch(16.07, 34.27, 17.38°)
OKLaboklab(28.93% 0.0982 0.025)
OKLCHoklch(28.93% 0.101 14.3)
XYZxyz(3.7976, 2.1129, 1.2446)
Luminance0.0211 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B1B #0B5242
analogous
#520B3E #520B1B #521E0B
triadic
#520B1B #1B520B #0B1B52
tetradic
#520B1B #3E520B #0B5242 #1E0B52
square
#520B1B #3E520B #0B5242 #1E0B52
split-complementary
#520B1B #0B521E #0B3E52
monochromatic
#1B0409 #1C0409 #520B1B #88122D #BE193F

Accessibility & contrast

On white

14.76
#520B1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#520B1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520B1B
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B1B#FFFFFF#000000##FFFFFF
##520B1B1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201F1B
Deuteranopia (green-blind)
#322D19
Tritanopia (blue-blind)
#5B0012
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #520b1b;
/* rgb */ color: rgb(82, 11, 27);
/* oklch */ color: oklch(28.9% 0.101 14.3);
Tailwind
colors: {
  custom: {
    50: '#885256',
    500: '#520b1b',
    950: '#000000',
  },
}
SCSS
$custom: #520b1b;
$custom-light: #885256;
$custom-dark: #000000;
JSON
{
  "hex": "#520b1b",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 27
  },
  "hsl": {
    "h": 346.479,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28932,
    "c": 0.10136,
    "h": 14.3
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#520B1B
secondary
#2B8E78
accent
#F3C835
background
#F8F4F5
surface
#F0E7E9
border
#CBC3C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #520B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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