#51541B#51541B

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

Color values

HEX#51541B
RGBrgb(81, 84, 27)
HSLhsl(63, 51%, 22%)
HSVhsv(63, 68%, 33%)
CMYKcmyk(3.6%, 0%, 67.9%, 67.1%)
CIE-LABlab(34.33, -9.78, 31.84)
CIE-LCHlch(34.33, 33.31, 107.07°)
OKLaboklab(43.05% -0.0294 0.0725)
OKLCHoklch(43.05% 0.078 112.1)
XYZxyz(6.7617, 8.1693, 2.2573)
Luminance0.0817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51541B #1E1B54
analogous
#543B1B #51541B #35541B
triadic
#51541B #1B5154 #541B51
tetradic
#51541B #1B543B #1E1B54 #541B35
square
#51541B #1B543B #1E1B54 #541B35
split-complementary
#51541B #1B3554 #3B1B54
monochromatic
#161707 #24260C #51541B #7E822A #AAB139

Accessibility & contrast

On white

7.97
#51541B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#51541B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51541B
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51541B#FFFFFF#000000##FFFFFF
##51541B1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51541b;
/* rgb */ color: rgb(81, 84, 27);
/* oklch */ color: oklch(43.1% 0.078 112.1);
Tailwind
colors: {
  custom: {
    50: '#84845a',
    500: '#51541b',
    950: '#000000',
  },
}
SCSS
$custom: #51541b;
$custom-light: #84845a;
$custom-dark: #000000;
JSON
{
  "hex": "#51541b",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 27
  },
  "hsl": {
    "h": 63.158,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.43053,
    "c": 0.07824,
    "h": 112.1
  },
  "luminance": 0.08169
}

Semantic roles & 50–950 ramp

primary
#51541B
secondary
#45418A
accent
#4DDB54
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51541B

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

Preview Lab → · Contrast checker → · Palette generator →

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