#8A7D1F#8A7D1F

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

Color values

HEX#8A7D1F
RGBrgb(138, 125, 31)
HSLhsl(53, 63%, 33%)
HSVhsv(53, 78%, 54%)
CMYKcmyk(0%, 9.4%, 77.5%, 45.9%)
CIE-LABlab(52.03, -5.76, 49.51)
CIE-LCHlch(52.03, 49.85, 96.64°)
OKLaboklab(58.45% -0.0213 0.1085)
OKLCHoklch(58.45% 0.111 101.1)
XYZxyz(18.0630, 20.1703, 4.2379)
Luminance0.2017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D1F #1F2C8A
analogous
#8A471F #8A7D1F #618A1F
triadic
#8A7D1F #1F8A7D #7D1F8A
tetradic
#8A7D1F #1F8A47 #1F2C8A #8A1F61
square
#8A7D1F #1F8A47 #1F2C8A #8A1F61
split-complementary
#8A7D1F #1F618A #471F8A
monochromatic
#262209 #585014 #8A7D1F #BCAA2A #D7C64C

Accessibility & contrast

On white

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

On black

5.03
#8A7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D1F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D1F#FFFFFF#000000##000000
##8A7D1F1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#8D7E26
Tritanopia (blue-blind)
#95736B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d1f;
/* rgb */ color: rgb(138, 125, 31);
/* oklch */ color: oklch(58.5% 0.111 101.1);
Tailwind
colors: {
  custom: {
    50: '#b0a263',
    500: '#8a7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d1f;
$custom-light: #b0a263;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d1f",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 52.71,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5845,
    "c": 0.1106,
    "h": 101.1
  },
  "luminance": 0.20169
}

Semantic roles & 50–950 ramp

primary
#8A7D1F
secondary
#4B59BA
accent
#55E641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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