#52170F#52170F

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

Color values

HEX#52170F
RGBrgb(82, 23, 15)
HSLhsl(7, 69%, 19%)
HSVhsv(7, 82%, 32%)
CMYKcmyk(0%, 72%, 81.7%, 67.8%)
CIE-LABlab(17.65, 27.00, 20.15)
CIE-LCHlch(17.65, 33.69, 36.74°)
OKLaboklab(30.04% 0.0772 0.0458)
OKLCHoklch(30.04% 0.09 30.7)
XYZxyz(3.8727, 2.4417, 0.7192)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52170F #0F4A52
analogous
#520F29 #52170F #52390F
triadic
#52170F #0F5217 #170F52
tetradic
#52170F #29520F #0F4A52 #390F52
square
#52170F #29520F #0F4A52 #390F52
split-complementary
#52170F #0F5239 #0F2952
monochromatic
#1A0705 #1E0806 #52170F #862618 #B93422

Accessibility & contrast

On white

14.11
#52170F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52170F
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52170F#FFFFFF#000000##FFFFFF
##52170F1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28230E
Deuteranopia (green-blind)
#36300D
Tritanopia (blue-blind)
#5B0716
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52170f;
/* rgb */ color: rgb(82, 23, 15);
/* oklch */ color: oklch(30.0% 0.090 30.7);
Tailwind
colors: {
  custom: {
    50: '#88584e',
    500: '#52170f',
    950: '#000000',
  },
}
SCSS
$custom: #52170f;
$custom-light: #88584e;
$custom-dark: #000000;
JSON
{
  "hex": "#52170f",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 15
  },
  "hsl": {
    "h": 7.164,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30043,
    "c": 0.08979,
    "h": 30.7
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#52170F
secondary
#31818C
accent
#D7EC3C
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #52170F

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

Preview Lab → · Contrast checker → · Palette generator →

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