#520E1F#520E1F

#520E1F is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.3% C 0.099 H 11.7°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#520E1F
RGBrgb(82, 14, 31)
HSLhsl(345, 71%, 19%)
HSVhsv(345, 83%, 32%)
CMYKcmyk(0%, 82.9%, 62.2%, 67.8%)
CIE-LABlab(16.54, 31.97, 7.97)
CIE-LCHlch(16.54, 32.95, 14.00°)
OKLaboklab(29.31% 0.0967 0.0199)
OKLCHoklch(29.31% 0.099 11.7)
XYZxyz(3.8844, 2.2074, 1.5176)
Luminance0.0221 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520E1F #0E5241
analogous
#520E41 #520E1F #521F0E
triadic
#520E1F #1F520E #0E1F52
tetradic
#520E1F #41520E #0E5241 #1F0E52
square
#520E1F #41520E #0E5241 #1F0E52
split-complementary
#520E1F #0E521F #0E4152
monochromatic
#1A040A #1E050B #520E1F #861733 #BB2047

Accessibility & contrast

On white

14.57
#520E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#520E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520E1F
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520E1F#FFFFFF#000000##FFFFFF
##520E1F1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20201F
Deuteranopia (green-blind)
#322E1D
Tritanopia (blue-blind)
#5A0015
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #520e1f;
/* rgb */ color: rgb(82, 14, 31);
/* oklch */ color: oklch(29.3% 0.099 11.7);
Tailwind
colors: {
  custom: {
    50: '#87545a',
    500: '#520e1f',
    950: '#000000',
  },
}
SCSS
$custom: #520e1f;
$custom-light: #87545a;
$custom-dark: #000000;
JSON
{
  "hex": "#520e1f",
  "rgb": {
    "r": 82,
    "g": 14,
    "b": 31
  },
  "hsl": {
    "h": 345,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29312,
    "c": 0.09869,
    "h": 11.7
  },
  "luminance": 0.02207
}

Semantic roles & 50–950 ramp

primary
#520E1F
secondary
#2F8C75
accent
#EEC13A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #520E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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