#51471F#51471F

#51471F is a dark, muted yellow. Relative luminance 0.064; OKLCH L 39.9% C 0.059 H 95.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#51471F
RGBrgb(81, 71, 31)
HSLhsl(48, 45%, 22%)
HSVhsv(48, 62%, 32%)
CMYKcmyk(0%, 12.3%, 61.7%, 68.2%)
CIE-LABlab(30.29, -1.62, 25.24)
CIE-LCHlch(30.29, 25.29, 93.68°)
OKLaboklab(39.85% -0.0057 0.059)
OKLCHoklch(39.85% 0.059 95.5)
XYZxyz(5.8941, 6.3550, 2.2122)
Luminance0.0635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51471F #1F2951
analogous
#512E1F #51471F #42511F
triadic
#51471F #1F5147 #471F51
tetradic
#51471F #1F512E #1F2951 #511F42
square
#51471F #1F512E #1F2951 #511F42
split-complementary
#51471F #1F4251 #2E1F51
monochromatic
#161308 #25200E #51471F #7D6E30 #AA9541

Accessibility & contrast

On white

9.25
#51471F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51471F
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51471F#FFFFFF#000000##FFFFFF
##51471F1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E451B
Deuteranopia (green-blind)
#514921
Tritanopia (blue-blind)
#57423E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #51471f;
/* rgb */ color: rgb(81, 71, 31);
/* oklch */ color: oklch(39.9% 0.059 95.5);
Tailwind
colors: {
  custom: {
    50: '#837a5c',
    500: '#51471f',
    950: '#000000',
  },
}
SCSS
$custom: #51471f;
$custom-light: #837a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#51471f",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 31
  },
  "hsl": {
    "h": 48,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.39853,
    "c": 0.05927,
    "h": 95.5
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#51471F
secondary
#465386
accent
#6DD453
background
#F8F7F5
surface
#EFEDE9
border
#CAC8C5
text
#0B0904
muted
#7C7B79

Preview Lab

Preview with #51471F

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

Preview Lab → · Contrast checker → · Palette generator →

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