#51541E#51541E

#51541E is a dark, moderate yellow. Relative luminance 0.082; OKLCH L 43.1% C 0.075 H 112.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#51541E
RGBrgb(81, 84, 30)
HSLhsl(63, 47%, 22%)
HSVhsv(63, 64%, 33%)
CMYKcmyk(3.6%, 0%, 64.3%, 67.1%)
CIE-LABlab(34.36, -9.53, 30.37)
CIE-LCHlch(34.36, 31.83, 107.42°)
OKLaboklab(43.09% -0.0284 0.0699)
OKLCHoklch(43.09% 0.075 112.1)
XYZxyz(6.7982, 8.1839, 2.4496)
Luminance0.0818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51541E #211E54
analogous
#543C1E #51541E #36541E
triadic
#51541E #1E5154 #541E51
tetradic
#51541E #1E543C #211E54 #541E36
square
#51541E #1E543C #211E54 #541E36
split-complementary
#51541E #1E3654 #3C1E54
monochromatic
#161708 #26270E #51541E #7C812E #A8AE3E

Accessibility & contrast

On white

7.96
#51541E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#51541E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51541E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51541E#FFFFFF#000000##FFFFFF
##51541E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5018
Deuteranopia (green-blind)
#5B5121
Tritanopia (blue-blind)
#574F48
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #51541e;
/* rgb */ color: rgb(81, 84, 30);
/* oklch */ color: oklch(43.1% 0.075 112.1);
Tailwind
colors: {
  custom: {
    50: '#84845c',
    500: '#51541e',
    950: '#000000',
  },
}
SCSS
$custom: #51541e;
$custom-light: #84845c;
$custom-dark: #000000;
JSON
{
  "hex": "#51541e",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 30
  },
  "hsl": {
    "h": 63.333,
    "s": 47.368,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43087,
    "c": 0.07541,
    "h": 112.1
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#51541E
secondary
#494589
accent
#51D758
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51541E

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

Preview Lab → · Contrast checker → · Palette generator →

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