#52170E#52170E

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

Color values

HEX#52170E
RGBrgb(82, 23, 14)
HSLhsl(8, 71%, 19%)
HSVhsv(8, 83%, 32%)
CMYKcmyk(0%, 72%, 82.9%, 67.8%)
CIE-LABlab(17.64, 26.95, 20.65)
CIE-LCHlch(17.64, 33.95, 37.46°)
OKLaboklab(30.03% 0.0769 0.0469)
OKLCHoklch(30.03% 0.09 31.4)
XYZxyz(3.8658, 2.4389, 0.6826)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52170E #0E4952
analogous
#520E27 #52170E #52390E
triadic
#52170E #0E5217 #170E52
tetradic
#52170E #27520E #0E4952 #390E52
square
#52170E #27520E #0E4952 #390E52
split-complementary
#52170E #0E5239 #0E2752
monochromatic
#1A0704 #1E0805 #52170E #862617 #BB3420

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52170E#FFFFFF#000000##FFFFFF
##52170E1.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)
#28230D
Deuteranopia (green-blind)
#36300C
Tritanopia (blue-blind)
#5B0715
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52170e;
/* rgb */ color: rgb(82, 23, 14);
/* oklch */ color: oklch(30.0% 0.090 31.4);
Tailwind
colors: {
  custom: {
    50: '#88584d',
    500: '#52170e',
    950: '#000000',
  },
}
SCSS
$custom: #52170e;
$custom-light: #88584d;
$custom-dark: #000000;
JSON
{
  "hex": "#52170e",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 14
  },
  "hsl": {
    "h": 7.941,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.30029,
    "c": 0.09001,
    "h": 31.4
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#52170E
secondary
#2F808C
accent
#D6EE3A
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #52170E

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

Preview Lab → · Contrast checker → · Palette generator →

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