#51540F#51540F

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

Color values

HEX#51540F
RGBrgb(81, 84, 15)
HSLhsl(63, 70%, 19%)
HSVhsv(63, 82%, 33%)
CMYKcmyk(3.6%, 0%, 82.1%, 67.1%)
CIE-LABlab(34.24, -10.52, 36.93)
CIE-LCHlch(34.24, 38.40, 105.91°)
OKLaboklab(42.95% -0.0329 0.081)
OKLCHoklch(42.95% 0.087 112.1)
XYZxyz(6.6501, 8.1246, 1.6697)
Luminance0.0812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51540F #120F54
analogous
#54350F #51540F #2F540F
triadic
#51540F #0F5154 #540F51
tetradic
#51540F #0F5435 #120F54 #540F2F
square
#51540F #0F5435 #120F54 #540F2F
split-complementary
#51540F #0F2F54 #350F54
monochromatic
#191A05 #1F2006 #51540F #838818 #B5BC22

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51540F#FFFFFF#000000##FFFFFF
##51540F1.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)
#5B5001
Deuteranopia (green-blind)
#5B5115
Tritanopia (blue-blind)
#574E47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #51540f;
/* rgb */ color: rgb(81, 84, 15);
/* oklch */ color: oklch(43.0% 0.087 112.1);
Tailwind
colors: {
  custom: {
    50: '#848354',
    500: '#51540f',
    950: '#000000',
  },
}
SCSS
$custom: #51540f;
$custom-light: #848354;
$custom-dark: #000000;
JSON
{
  "hex": "#51540f",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 62.609,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42951,
    "c": 0.08739,
    "h": 112.1
  },
  "luminance": 0.08124
}

Semantic roles & 50–950 ramp

primary
#51540F
secondary
#35318E
accent
#3BED43
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #51540F

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

Preview Lab → · Contrast checker → · Palette generator →

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