#52170B#52170B

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

Color values

HEX#52170B
RGBrgb(82, 23, 11)
HSLhsl(10, 76%, 18%)
HSVhsv(10, 87%, 32%)
CMYKcmyk(0%, 72%, 86.6%, 67.8%)
CIE-LABlab(17.61, 26.82, 22.01)
CIE-LCHlch(17.61, 34.69, 39.38°)
OKLaboklab(29.99% 0.0758 0.0498)
OKLCHoklch(29.99% 0.091 33.3)
XYZxyz(3.8469, 2.4314, 0.5833)
Luminance0.0243 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52170B #0B4652
analogous
#520B22 #52170B #523A0B
triadic
#52170B #0B5217 #170B52
tetradic
#52170B #22520B #0B4652 #3A0B52
square
#52170B #22520B #0B4652 #3A0B52
split-complementary
#52170B #0B523A #0B2252
monochromatic
#1B0804 #1C0804 #52170B #882612 #BE3519

Accessibility & contrast

On white

14.13
#52170B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52170B
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52170B#FFFFFF#000000##FFFFFF
##52170B1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282309
Deuteranopia (green-blind)
#373009
Tritanopia (blue-blind)
#5B0615
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52170b;
/* rgb */ color: rgb(82, 23, 11);
/* oklch */ color: oklch(30.0% 0.091 33.3);
Tailwind
colors: {
  custom: {
    50: '#89584b',
    500: '#52170b',
    950: '#000000',
  },
}
SCSS
$custom: #52170b;
$custom-light: #89584b;
$custom-dark: #000000;
JSON
{
  "hex": "#52170b",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 11
  },
  "hsl": {
    "h": 10.141,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.29992,
    "c": 0.0907,
    "h": 33.3
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#52170B
secondary
#2B7D8E
accent
#D3F335
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0D0301
muted
#7D7877

Preview Lab

Preview with #52170B

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

Preview Lab → · Contrast checker → · Palette generator →

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