#51511A#51511A

#51511A is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.3% C 0.075 H 109.2°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#51511A
RGBrgb(81, 81, 26)
HSLhsl(60, 51%, 21%)
HSVhsv(60, 68%, 32%)
CMYKcmyk(0%, 0%, 67.9%, 68.2%)
CIE-LABlab(33.37, -8.09, 31.30)
CIE-LCHlch(33.37, 32.33, 104.50°)
OKLaboklab(42.28% -0.0248 0.0712)
OKLCHoklch(42.28% 0.075 109.2)
XYZxyz(6.5224, 7.7090, 2.1215)
Luminance0.0771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51511A #1A1A51
analogous
#51351A #51511A #35511A
triadic
#51511A #1A5151 #511A51
tetradic
#51511A #1A5135 #1A1A51 #511A35
square
#51511A #1A5135 #1A1A51 #511A35
split-complementary
#51511A #1A3551 #351A51
monochromatic
#171707 #23230B #51511A #7F7F29 #AEAE38

Accessibility & contrast

On white

8.26
#51511A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#51511A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51511A
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51511A#FFFFFF#000000##FFFFFF
##51511A1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D13
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#574C46
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #51511a;
/* rgb */ color: rgb(81, 81, 26);
/* oklch */ color: oklch(42.3% 0.075 109.2);
Tailwind
colors: {
  custom: {
    50: '#84815a',
    500: '#51511a',
    950: '#000000',
  },
}
SCSS
$custom: #51511a;
$custom-light: #84815a;
$custom-dark: #000000;
JSON
{
  "hex": "#51511a",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 26
  },
  "hsl": {
    "h": 60,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.4228,
    "c": 0.0754,
    "h": 109.2
  },
  "luminance": 0.07709
}

Semantic roles & 50–950 ramp

primary
#51511A
secondary
#404087
accent
#4DDB4D
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51511A

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

Preview Lab → · Contrast checker → · Palette generator →

#51511A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva