#51540E#51540E

#51540E is a dark, moderate yellow. Relative luminance 0.081; OKLCH L 42.9% C 0.088 H 112.1°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#51540E
RGBrgb(81, 84, 14)
HSLhsl(63, 71%, 19%)
HSVhsv(63, 83%, 33%)
CMYKcmyk(3.6%, 0%, 83.3%, 67.1%)
CIE-LABlab(34.24, -10.57, 37.29)
CIE-LCHlch(34.24, 38.76, 105.83°)
OKLaboklab(42.94% -0.0331 0.0815)
OKLCHoklch(42.94% 0.088 112.1)
XYZxyz(6.6432, 8.1218, 1.6331)
Luminance0.0812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51540E #110E54
analogous
#54340E #51540E #2E540E
triadic
#51540E #0E5154 #540E51
tetradic
#51540E #0E5434 #110E54 #540E2E
square
#51540E #0E5434 #110E54 #540E2E
split-complementary
#51540E #0E2E54 #340E54
monochromatic
#191A04 #1E2005 #51540E #848817 #B6BD1F

Accessibility & contrast

On white

8.00
#51540E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#51540E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51540E
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51540E#FFFFFF#000000##FFFFFF
##51540E1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5000
Deuteranopia (green-blind)
#5B5114
Tritanopia (blue-blind)
#574E47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #51540e;
/* rgb */ color: rgb(81, 84, 14);
/* oklch */ color: oklch(42.9% 0.088 112.1);
Tailwind
colors: {
  custom: {
    50: '#858353',
    500: '#51540e',
    950: '#000000',
  },
}
SCSS
$custom: #51540e;
$custom-light: #858353;
$custom-dark: #000000;
JSON
{
  "hex": "#51540e",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 62.571,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.42944,
    "c": 0.08798,
    "h": 112.1
  },
  "luminance": 0.08122
}

Semantic roles & 50–950 ramp

primary
#51540E
secondary
#342F8E
accent
#3AEE41
background
#F8F8F5
surface
#EFEFE8
border
#CACAC4
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #51540E

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

Preview Lab → · Contrast checker → · Palette generator →

#51540E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva