#8D7E1F#8D7E1F

#8D7E1F is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.111 H 99.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8D7E1F
RGBrgb(141, 126, 31)
HSLhsl(52, 64%, 34%)
HSVhsv(52, 78%, 55%)
CMYKcmyk(0%, 10.6%, 78%, 44.7%)
CIE-LABlab(52.60, -4.93, 50.15)
CIE-LCHlch(52.60, 50.39, 95.61°)
OKLaboklab(58.97% -0.0191 0.1098)
OKLCHoklch(58.97% 0.111 99.9)
XYZxyz(18.6936, 20.6843, 4.3039)
Luminance0.2068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7E1F #1F2E8D
analogous
#8D471F #8D7E1F #658D1F
triadic
#8D7E1F #1F8D7E #7E1F8D
tetradic
#8D7E1F #1F8D47 #1F2E8D #8D1F65
square
#8D7E1F #1F8D47 #1F2E8D #8D1F65
split-complementary
#8D7E1F #1F658D #471F8D
monochromatic
#292409 #5B5114 #8D7E1F #BFAB2A #D8C54E

Accessibility & contrast

On white

4.09
#8D7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8D7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7E1F
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7E1F#FFFFFF#000000##000000
##8D7E1F1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0B
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#98746C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8d7e1f;
/* rgb */ color: rgb(141, 126, 31);
/* oklch */ color: oklch(59.0% 0.111 99.9);
Tailwind
colors: {
  custom: {
    50: '#b2a363',
    500: '#8d7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #8d7e1f;
$custom-light: #b2a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7e1f",
  "rgb": {
    "r": 141,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 51.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58973,
    "c": 0.11141,
    "h": 99.9
  },
  "luminance": 0.20683
}

Semantic roles & 50–950 ramp

primary
#8D7E1F
secondary
#4D5CBB
accent
#57E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8D7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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