#51171C#51171C

#51171C is a dark, moderate red. Relative luminance 0.024; OKLCH L 30.1% C 0.087 H 19.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#51171C
RGBrgb(81, 23, 28)
HSLhsl(355, 56%, 20%)
HSVhsv(355, 72%, 32%)
CMYKcmyk(0%, 71.6%, 65.4%, 68.2%)
CIE-LABlab(17.67, 27.45, 11.60)
CIE-LCHlch(17.67, 29.80, 22.91°)
OKLaboklab(30.09% 0.0818 0.0283)
OKLCHoklch(30.09% 0.087 19.1)
XYZxyz(3.9097, 2.4465, 1.3647)
Luminance0.0245 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51171C #17514C
analogous
#511739 #51171C #512F17
triadic
#51171C #1C5117 #171C51
tetradic
#51171C #395117 #17514C #2F1751
square
#51171C #395117 #17514C #2F1751
split-complementary
#51171C #17512F #173951
monochromatic
#180708 #21090C #51171C #81252C #B0323D

Accessibility & contrast

On white

14.10
#51171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#51171C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51171C
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51171C#FFFFFF#000000##FFFFFF
##51171C1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241C
Deuteranopia (green-blind)
#34301B
Tritanopia (blue-blind)
#590B19
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51171c;
/* rgb */ color: rgb(81, 23, 28);
/* oklch */ color: oklch(30.1% 0.087 19.1);
Tailwind
colors: {
  custom: {
    50: '#865857',
    500: '#51171c',
    950: '#000000',
  },
}
SCSS
$custom: #51171c;
$custom-light: #865857;
$custom-dark: #000000;
JSON
{
  "hex": "#51171c",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 354.828,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30094,
    "c": 0.08651,
    "h": 19.1
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

primary
#51171C
secondary
#3C8882
accent
#DFD249
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51171C

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

Preview Lab → · Contrast checker → · Palette generator →

#51171C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva