#52170D#52170D

#52170D is a dark, moderate red. Relative luminance 0.024; OKLCH L 30.0% C 0.090 H 32.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#52170D
RGBrgb(82, 23, 13)
HSLhsl(9, 73%, 19%)
HSVhsv(9, 84%, 32%)
CMYKcmyk(0%, 72%, 84.1%, 67.8%)
CIE-LABlab(17.63, 26.90, 21.13)
CIE-LCHlch(17.63, 34.21, 38.15°)
OKLaboklab(30.02% 0.0765 0.0479)
OKLCHoklch(30.02% 0.09 32.1)
XYZxyz(3.8591, 2.4363, 0.6477)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52170D #0D4852
analogous
#520D25 #52170D #52390D
triadic
#52170D #0D5217 #170D52
tetradic
#52170D #25520D #0D4852 #390D52
square
#52170D #25520D #0D4852 #390D52
split-complementary
#52170D #0D5239 #0D2552
monochromatic
#1A0704 #1D0805 #52170D #872615 #BC351E

Accessibility & contrast

On white

14.12
#52170D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#52170D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52170D
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52170D#FFFFFF#000000##FFFFFF
##52170D1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28230B
Deuteranopia (green-blind)
#36300B
Tritanopia (blue-blind)
#5B0615
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52170d;
/* rgb */ color: rgb(82, 23, 13);
/* oklch */ color: oklch(30.0% 0.090 32.1);
Tailwind
colors: {
  custom: {
    50: '#89584d',
    500: '#52170d',
    950: '#000000',
  },
}
SCSS
$custom: #52170d;
$custom-light: #89584d;
$custom-dark: #000000;
JSON
{
  "hex": "#52170d",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 13
  },
  "hsl": {
    "h": 8.696,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30016,
    "c": 0.09024,
    "h": 32.1
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#52170D
secondary
#2E7F8D
accent
#D5EF38
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0D0301
muted
#7D7877

Preview Lab

Preview with #52170D

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

Preview Lab → · Contrast checker → · Palette generator →

#52170D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva