#511218#511218

#511218 is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.4% C 0.093 H 19.9°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#511218
RGBrgb(81, 18, 24)
HSLhsl(354, 64%, 19%)
HSVhsv(354, 78%, 32%)
CMYKcmyk(0%, 77.8%, 70.4%, 68.2%)
CIE-LABlab(16.74, 29.47, 13.22)
CIE-LCHlch(16.74, 32.30, 24.17°)
OKLaboklab(29.37% 0.0873 0.0316)
OKLCHoklch(29.37% 0.093 19.9)
XYZxyz(3.7749, 2.2484, 1.0992)
Luminance0.0225 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511218 #12514B
analogous
#511238 #511218 #512C12
triadic
#511218 #185112 #121851
tetradic
#511218 #385112 #12514B #2C1251
square
#511218 #385112 #12514B #2C1251
split-complementary
#511218 #12512C #123851
monochromatic
#190607 #1F0709 #511218 #831D27 #B52836

Accessibility & contrast

On white

14.49
#511218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#511218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511218
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511218#FFFFFF#000000##FFFFFF
##5112181.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232118
Deuteranopia (green-blind)
#332E16
Tritanopia (blue-blind)
#5A0215
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #511218;
/* rgb */ color: rgb(81, 18, 24);
/* oklch */ color: oklch(29.4% 0.093 19.9);
Tailwind
colors: {
  custom: {
    50: '#875554',
    500: '#511218',
    950: '#000000',
  },
}
SCSS
$custom: #511218;
$custom-light: #875554;
$custom-dark: #000000;
JSON
{
  "hex": "#511218",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 24
  },
  "hsl": {
    "h": 354.286,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29369,
    "c": 0.09285,
    "h": 19.9
  },
  "luminance": 0.02248
}

Semantic roles & 50–950 ramp

primary
#511218
secondary
#358A82
accent
#E7D741
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #511218

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

Preview Lab → · Contrast checker → · Palette generator →

#511218 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva