#511B27#511B27

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

Color values

HEX#511B27
RGBrgb(81, 27, 39)
HSLhsl(347, 50%, 21%)
HSVhsv(347, 67%, 32%)
CMYKcmyk(0%, 66.7%, 51.9%, 68.2%)
CIE-LABlab(18.71, 26.46, 5.23)
CIE-LCHlch(18.71, 26.97, 11.19°)
OKLaboklab(30.96% 0.0803 0.0136)
OKLCHoklch(30.96% 0.081 9.6)
XYZxyz(4.1518, 2.6802, 2.2178)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B27 #1B5145
analogous
#511B42 #511B27 #512A1B
triadic
#511B27 #27511B #1B2751
tetradic
#511B27 #42511B #1B5145 #2A1B51
square
#511B27 #42511B #1B5145 #2A1B51
split-complementary
#511B27 #1B512A #1B4251
monochromatic
#17080B #230C11 #511B27 #7F2A3D #AD3A53

Accessibility & contrast

On white

13.67
#511B27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#511B27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B27
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B27#FFFFFF#000000##FFFFFF
##511B271.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272727
Deuteranopia (green-blind)
#353226
Tritanopia (blue-blind)
#591320
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511b27;
/* rgb */ color: rgb(81, 27, 39);
/* oklch */ color: oklch(31.0% 0.081 9.6);
Tailwind
colors: {
  custom: {
    50: '#855a60',
    500: '#511b27',
    950: '#000000',
  },
}
SCSS
$custom: #511b27;
$custom-light: #855a60;
$custom-dark: #000000;
JSON
{
  "hex": "#511b27",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 39
  },
  "hsl": {
    "h": 346.667,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30962,
    "c": 0.08145,
    "h": 9.6
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#511B27
secondary
#418777
accent
#DABB4E
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0405
muted
#7C7979

Preview Lab

Preview with #511B27

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

Preview Lab → · Contrast checker → · Palette generator →

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