#52161F#52161F

#52161F is a dark, moderate red. Relative luminance 0.025; OKLCH L 30.2% C 0.089 H 15.6°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#52161F
RGBrgb(82, 22, 31)
HSLhsl(351, 58%, 20%)
HSVhsv(351, 73%, 32%)
CMYKcmyk(0%, 73.2%, 62.2%, 67.8%)
CIE-LABlab(17.77, 28.57, 9.64)
CIE-LCHlch(17.77, 30.15, 18.64°)
OKLaboklab(30.23% 0.0858 0.0239)
OKLCHoklch(30.23% 0.089 15.6)
XYZxyz(4.0143, 2.4671, 1.5609)
Luminance0.0247 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52161F #165249
analogous
#52163D #52161F #522B16
triadic
#52161F #1F5216 #161F52
tetradic
#52161F #3D5216 #165249 #2B1652
square
#52161F #3D5216 #165249 #2B1652
split-complementary
#52161F #16522B #163D52
monochromatic
#180609 #22090D #52161F #822331 #B33043

Accessibility & contrast

On white

14.06
#52161F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52161F
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52161F#FFFFFF#000000##FFFFFF
##52161F1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25241F
Deuteranopia (green-blind)
#34301D
Tritanopia (blue-blind)
#5A091A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52161f;
/* rgb */ color: rgb(82, 22, 31);
/* oklch */ color: oklch(30.2% 0.089 15.6);
Tailwind
colors: {
  custom: {
    50: '#87575a',
    500: '#52161f',
    950: '#000000',
  },
}
SCSS
$custom: #52161f;
$custom-light: #87575a;
$custom-dark: #000000;
JSON
{
  "hex": "#52161f",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 31
  },
  "hsl": {
    "h": 351,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30225,
    "c": 0.08903,
    "h": 15.6
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#52161F
secondary
#3A897E
accent
#E1CA47
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52161F

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

Preview Lab → · Contrast checker → · Palette generator →

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