#511B23#511B23

#511B23 is a dark, moderate red. Relative luminance 0.027; OKLCH L 30.8% C 0.081 H 14.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#511B23
RGBrgb(81, 27, 35)
HSLhsl(351, 50%, 21%)
HSVhsv(351, 67%, 32%)
CMYKcmyk(0%, 66.7%, 56.8%, 68.2%)
CIE-LABlab(18.61, 26.03, 7.91)
CIE-LCHlch(18.61, 27.21, 16.90°)
OKLaboklab(30.85% 0.0785 0.02)
OKLCHoklch(30.85% 0.081 14.3)
XYZxyz(4.0890, 2.6551, 1.8869)
Luminance0.0266 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B23 #1B5149
analogous
#511B3E #511B23 #512E1B
triadic
#511B23 #23511B #1B2351
tetradic
#511B23 #3E511B #1B5149 #2E1B51
square
#511B23 #3E511B #1B5149 #2E1B51
split-complementary
#511B23 #1B512E #1B3E51
monochromatic
#17080A #230C0F #511B23 #7F2A37 #AD3A4B

Accessibility & contrast

On white

13.72
#511B23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#511B23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B23
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B23#FFFFFF#000000##FFFFFF
##511B231.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272623
Deuteranopia (green-blind)
#353122
Tritanopia (blue-blind)
#59121E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511b23;
/* rgb */ color: rgb(81, 27, 35);
/* oklch */ color: oklch(30.8% 0.081 14.3);
Tailwind
colors: {
  custom: {
    50: '#855a5d',
    500: '#511b23',
    950: '#000000',
  },
}
SCSS
$custom: #511b23;
$custom-light: #855a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#511b23",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 35
  },
  "hsl": {
    "h": 351.111,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30845,
    "c": 0.08099,
    "h": 14.3
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#511B23
secondary
#41877D
accent
#DAC54E
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0404
muted
#7D7979

Preview Lab

Preview with #511B23

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

Preview Lab → · Contrast checker → · Palette generator →

#511B23 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva