#8D7F1F#8D7F1F

#8D7F1F is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.2% C 0.112 H 100.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8D7F1F
RGBrgb(141, 127, 31)
HSLhsl(52, 64%, 34%)
HSVhsv(52, 78%, 55%)
CMYKcmyk(0%, 9.9%, 78%, 44.7%)
CIE-LABlab(52.89, -5.48, 50.41)
CIE-LCHlch(52.89, 50.71, 96.20°)
OKLaboklab(59.2% -0.0206 0.1103)
OKLCHoklch(59.2% 0.112 100.6)
XYZxyz(18.8221, 20.9413, 4.3467)
Luminance0.2094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7F1F #1F2D8D
analogous
#8D481F #8D7F1F #648D1F
triadic
#8D7F1F #1F8D7F #7F1F8D
tetradic
#8D7F1F #1F8D48 #1F2D8D #8D1F64
square
#8D7F1F #1F8D48 #1F2D8D #8D1F64
split-complementary
#8D7F1F #1F648D #481F8D
monochromatic
#292509 #5B5214 #8D7F1F #BFAC2A #D8C74E

Accessibility & contrast

On white

4.05
#8D7F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8D7F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7F1F
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7F1F#FFFFFF#000000##000000
##8D7F1F1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0A
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#98756D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8d7f1f;
/* rgb */ color: rgb(141, 127, 31);
/* oklch */ color: oklch(59.2% 0.112 100.6);
Tailwind
colors: {
  custom: {
    50: '#b2a363',
    500: '#8d7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #8d7f1f;
$custom-light: #b2a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7f1f",
  "rgb": {
    "r": 141,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 52.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59198,
    "c": 0.11224,
    "h": 100.6
  },
  "luminance": 0.2094
}

Semantic roles & 50–950 ramp

primary
#8D7F1F
secondary
#4D5BBB
accent
#56E741
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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