#51471A#51471A

#51471A is a dark, moderate yellow. Relative luminance 0.063; OKLCH L 39.8% C 0.064 H 96.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#51471A
RGBrgb(81, 71, 26)
HSLhsl(49, 51%, 21%)
HSVhsv(49, 68%, 32%)
CMYKcmyk(0%, 12.3%, 67.9%, 68.2%)
CIE-LABlab(30.23, -2.05, 27.91)
CIE-LCHlch(30.23, 27.98, 94.20°)
OKLaboklab(39.79% -0.0076 0.064)
OKLCHoklch(39.79% 0.064 96.8)
XYZxyz(5.8333, 6.3307, 1.8918)
Luminance0.0633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51471A #1A2451
analogous
#512B1A #51471A #3F511A
triadic
#51471A #1A5147 #471A51
tetradic
#51471A #1A512B #1A2451 #511A3F
square
#51471A #1A512B #1A2451 #511A3F
split-complementary
#51471A #1A3F51 #2B1A51
monochromatic
#171407 #231E0B #51471A #7F7029 #AE9838

Accessibility & contrast

On white

9.27
#51471A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#51471A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51471A
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51471A#FFFFFF#000000##FFFFFF
##51471A1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4515
Deuteranopia (green-blind)
#51491C
Tritanopia (blue-blind)
#58423D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #51471a;
/* rgb */ color: rgb(81, 71, 26);
/* oklch */ color: oklch(39.8% 0.064 96.8);
Tailwind
colors: {
  custom: {
    50: '#847a59',
    500: '#51471a',
    950: '#000000',
  },
}
SCSS
$custom: #51471a;
$custom-light: #847a59;
$custom-dark: #000000;
JSON
{
  "hex": "#51471a",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 26
  },
  "hsl": {
    "h": 49.091,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.39787,
    "c": 0.06445,
    "h": 96.8
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#51471A
secondary
#404D87
accent
#67DB4D
background
#F8F7F5
surface
#EFEDE9
border
#CAC8C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #51471A

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

Preview Lab → · Contrast checker → · Palette generator →

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