#8D7D1F#8D7D1F

#8D7D1F is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.7% C 0.111 H 99.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8D7D1F
RGBrgb(141, 125, 31)
HSLhsl(51, 64%, 34%)
HSVhsv(51, 78%, 55%)
CMYKcmyk(0%, 11.3%, 78%, 44.7%)
CIE-LABlab(52.32, -4.37, 49.89)
CIE-LCHlch(52.32, 50.08, 95.00°)
OKLaboklab(58.75% -0.0175 0.1092)
OKLCHoklch(58.75% 0.111 99.1)
XYZxyz(18.5664, 20.4298, 4.2615)
Luminance0.2043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7D1F #1F2F8D
analogous
#8D461F #8D7D1F #668D1F
triadic
#8D7D1F #1F8D7D #7D1F8D
tetradic
#8D7D1F #1F8D46 #1F2F8D #8D1F66
square
#8D7D1F #1F8D46 #1F2F8D #8D1F66
split-complementary
#8D7D1F #1F668D #461F8D
monochromatic
#292409 #5B5114 #8D7D1F #BFA92A #D8C44E

Accessibility & contrast

On white

4.13
#8D7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8D7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7D1F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7D1F#FFFFFF#000000##000000
##8D7D1F1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0C
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#98736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8d7d1f;
/* rgb */ color: rgb(141, 125, 31);
/* oklch */ color: oklch(58.7% 0.111 99.1);
Tailwind
colors: {
  custom: {
    50: '#b2a263',
    500: '#8d7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #8d7d1f;
$custom-light: #b2a263;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7d1f",
  "rgb": {
    "r": 141,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 51.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58749,
    "c": 0.1106,
    "h": 99.1
  },
  "luminance": 0.20429
}

Semantic roles & 50–950 ramp

primary
#8D7D1F
secondary
#4D5DBB
accent
#59E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8D7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#8D7D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva