#51180C#51180C

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

Color values

HEX#51180C
RGBrgb(81, 24, 12)
HSLhsl(10, 74%, 18%)
HSVhsv(10, 85%, 32%)
CMYKcmyk(0%, 70.4%, 85.2%, 68.2%)
CIE-LABlab(17.60, 25.95, 21.51)
CIE-LCHlch(17.60, 33.71, 39.65°)
OKLaboklab(29.95% 0.0734 0.0488)
OKLCHoklch(29.95% 0.088 33.6)
XYZxyz(3.7868, 2.4297, 0.6173)
Luminance0.0243 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51180C #0C4551
analogous
#510C22 #51180C #513A0C
triadic
#51180C #0C5118 #180C51
tetradic
#51180C #22510C #0C4551 #3A0C51
square
#51180C #22510C #0C4551 #3A0C51
split-complementary
#51180C #0C513A #0C2251
monochromatic
#1B0804 #1C0804 #51180C #862814 #BC381C

Accessibility & contrast

On white

14.13
#51180C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51180C
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

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

Design tokens & code

CSS
--color: #51180c;
/* rgb */ color: rgb(81, 24, 12);
/* oklch */ color: oklch(30.0% 0.088 33.6);
Tailwind
colors: {
  custom: {
    50: '#88584c',
    500: '#51180c',
    950: '#000000',
  },
}
SCSS
$custom: #51180c;
$custom-light: #88584c;
$custom-dark: #000000;
JSON
{
  "hex": "#51180c",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 12
  },
  "hsl": {
    "h": 10.435,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.29951,
    "c": 0.08815,
    "h": 33.6
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#51180C
secondary
#2C7C8C
accent
#D1F137
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #51180C

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

Preview Lab → · Contrast checker → · Palette generator →

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