#51491F#51491F

#51491F is a dark, moderate yellow. Relative luminance 0.066; OKLCH L 40.3% C 0.061 H 98.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#51491F
RGBrgb(81, 73, 31)
HSLhsl(50, 45%, 22%)
HSVhsv(50, 62%, 32%)
CMYKcmyk(0%, 9.9%, 61.7%, 68.2%)
CIE-LABlab(30.91, -2.86, 25.95)
CIE-LCHlch(30.91, 26.11, 96.28°)
OKLaboklab(40.34% -0.0092 0.0605)
OKLCHoklch(40.34% 0.061 98.7)
XYZxyz(6.0234, 6.6136, 2.2553)
Luminance0.0661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51491F #1F2751
analogous
#51301F #51491F #40511F
triadic
#51491F #1F5149 #491F51
tetradic
#51491F #1F5130 #1F2751 #511F40
square
#51491F #1F5130 #1F2751 #511F40
split-complementary
#51491F #1F4051 #301F51
monochromatic
#161408 #25210E #51491F #7D7130 #AA9941

Accessibility & contrast

On white

9.04
#51491F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#51491F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51491F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51491F#FFFFFF#000000##FFFFFF
##51491F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50471B
Deuteranopia (green-blind)
#524A21
Tritanopia (blue-blind)
#574440
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #51491f;
/* rgb */ color: rgb(81, 73, 31);
/* oklch */ color: oklch(40.3% 0.061 98.7);
Tailwind
colors: {
  custom: {
    50: '#837b5c',
    500: '#51491f',
    950: '#000000',
  },
}
SCSS
$custom: #51491f;
$custom-light: #837b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#51491f",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 31
  },
  "hsl": {
    "h": 50.4,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.40343,
    "c": 0.06124,
    "h": 98.7
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#51491F
secondary
#465086
accent
#68D453
background
#F8F7F5
surface
#EFEDE9
border
#CAC8C5
text
#0B0904
muted
#7C7B79

Preview Lab

Preview with #51491F

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

Preview Lab → · Contrast checker → · Palette generator →

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