#51180F#51180F

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

Color values

HEX#51180F
RGBrgb(81, 24, 15)
HSLhsl(8, 69%, 19%)
HSVhsv(8, 81%, 32%)
CMYKcmyk(0%, 70.4%, 81.5%, 68.2%)
CIE-LABlab(17.63, 26.09, 20.08)
CIE-LCHlch(17.63, 32.92, 37.58°)
OKLaboklab(29.99% 0.0745 0.0457)
OKLCHoklch(29.99% 0.087 31.5)
XYZxyz(3.8066, 2.4376, 0.7219)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51180F #0F4851
analogous
#510F27 #51180F #51390F
triadic
#51180F #0F5118 #180F51
tetradic
#51180F #27510F #0F4851 #390F51
square
#51180F #27510F #0F4851 #390F51
split-complementary
#51180F #0F5139 #0F2751
monochromatic
#1A0805 #1D0905 #51180F #852719 #B83722

Accessibility & contrast

On white

14.12
#51180F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51180F
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

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

Design tokens & code

CSS
--color: #51180f;
/* rgb */ color: rgb(81, 24, 15);
/* oklch */ color: oklch(30.0% 0.087 31.5);
Tailwind
colors: {
  custom: {
    50: '#87584e',
    500: '#51180f',
    950: '#000000',
  },
}
SCSS
$custom: #51180f;
$custom-light: #87584e;
$custom-dark: #000000;
JSON
{
  "hex": "#51180f",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 15
  },
  "hsl": {
    "h": 8.182,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2999,
    "c": 0.08743,
    "h": 31.5
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#51180F
secondary
#317F8B
accent
#D4EC3C
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #51180F

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

Preview Lab → · Contrast checker → · Palette generator →

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