#520B1C#520B1C

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

Color values

HEX#520B1C
RGBrgb(82, 11, 28)
HSLhsl(346, 76%, 18%)
HSVhsv(346, 87%, 32%)
CMYKcmyk(0%, 86.6%, 65.9%, 67.8%)
CIE-LABlab(16.09, 32.78, 9.54)
CIE-LCHlch(16.09, 34.14, 16.24°)
OKLaboklab(28.96% 0.0987 0.0235)
OKLCHoklch(28.96% 0.101 13.4)
XYZxyz(3.8093, 2.1176, 1.3065)
Luminance0.0212 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B1C #0B5241
analogous
#520B3F #520B1C #521D0B
triadic
#520B1C #1C520B #0B1C52
tetradic
#520B1C #3F520B #0B5241 #1D0B52
square
#520B1C #3F520B #0B5241 #1D0B52
split-complementary
#520B1C #0B521D #0B3F52
monochromatic
#1B0409 #1C040A #520B1C #88122E #BE1941

Accessibility & contrast

On white

14.75
#520B1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520B1C
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B1C#FFFFFF#000000##FFFFFF
##520B1C1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1F1C
Deuteranopia (green-blind)
#312D1A
Tritanopia (blue-blind)
#5B0012
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #520b1c;
/* rgb */ color: rgb(82, 11, 28);
/* oklch */ color: oklch(29.0% 0.101 13.4);
Tailwind
colors: {
  custom: {
    50: '#885257',
    500: '#520b1c',
    950: '#000000',
  },
}
SCSS
$custom: #520b1c;
$custom-light: #885257;
$custom-dark: #000000;
JSON
{
  "hex": "#520b1c",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 28
  },
  "hsl": {
    "h": 345.634,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28957,
    "c": 0.10144,
    "h": 13.4
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#520B1C
secondary
#2B8E76
accent
#F3C535
background
#F8F4F5
surface
#F0E7E9
border
#CBC3C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #520B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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