#8D7C1F#8D7C1F

#8D7C1F is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.110 H 98.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8D7C1F
RGBrgb(141, 124, 31)
HSLhsl(51, 64%, 34%)
HSVhsv(51, 78%, 55%)
CMYKcmyk(0%, 12.1%, 78%, 44.7%)
CIE-LABlab(52.04, -3.81, 49.63)
CIE-LCHlch(52.04, 49.77, 94.39°)
OKLaboklab(58.53% -0.0159 0.1087)
OKLCHoklch(58.53% 0.11 98.3)
XYZxyz(18.4404, 20.1779, 4.2195)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7C1F #1F308D
analogous
#8D451F #8D7C1F #678D1F
triadic
#8D7C1F #1F8D7C #7C1F8D
tetradic
#8D7C1F #1F8D45 #1F308D #8D1F67
square
#8D7C1F #1F8D45 #1F308D #8D1F67
split-complementary
#8D7C1F #1F678D #451F8D
monochromatic
#292409 #5B5014 #8D7C1F #BFA82A #D8C34E

Accessibility & contrast

On white

4.17
#8D7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8D7C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7C1F
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7C1F#FFFFFF#000000##000000
##8D7C1F1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#8D7F25
Tritanopia (blue-blind)
#99726A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8d7c1f;
/* rgb */ color: rgb(141, 124, 31);
/* oklch */ color: oklch(58.5% 0.110 98.3);
Tailwind
colors: {
  custom: {
    50: '#b2a163',
    500: '#8d7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #8d7c1f;
$custom-light: #b2a163;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7c1f",
  "rgb": {
    "r": 141,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 50.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58526,
    "c": 0.10981,
    "h": 98.3
  },
  "luminance": 0.20177
}

Semantic roles & 50–950 ramp

primary
#8D7C1F
secondary
#4D5EBB
accent
#5BE741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8D7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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