#8A7D1D#8A7D1D

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

Color values

HEX#8A7D1D
RGBrgb(138, 125, 29)
HSLhsl(53, 65%, 33%)
HSVhsv(53, 79%, 54%)
CMYKcmyk(0%, 9.4%, 79%, 45.9%)
CIE-LABlab(52.02, -5.85, 50.22)
CIE-LCHlch(52.02, 50.56, 96.64°)
OKLaboklab(58.44% -0.0217 0.1096)
OKLCHoklch(58.44% 0.112 101.2)
XYZxyz(18.0375, 20.1601, 4.1033)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D1D #1D2A8A
analogous
#8A461D #8A7D1D #608A1D
triadic
#8A7D1D #1D8A7D #7D1D8A
tetradic
#8A7D1D #1D8A46 #1D2A8A #8A1D60
square
#8A7D1D #1D8A46 #1D2A8A #8A1D60
split-complementary
#8A7D1D #1D608A #461D8A
monochromatic
#252108 #574F12 #8A7D1D #BDAB28 #D9C849

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7D1D#FFFFFF#000000##000000
##8A7D1D1.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)
#897907
Deuteranopia (green-blind)
#8D7E24
Tritanopia (blue-blind)
#95736B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d1d;
/* rgb */ color: rgb(138, 125, 29);
/* oklch */ color: oklch(58.4% 0.112 101.2);
Tailwind
colors: {
  custom: {
    50: '#b0a262',
    500: '#8a7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d1d;
$custom-light: #b0a262;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d1d",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 52.844,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58437,
    "c": 0.11176,
    "h": 101.2
  },
  "luminance": 0.20159
}

Semantic roles & 50–950 ramp

primary
#8A7D1D
secondary
#4856BB
accent
#54E840
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F05
muted
#807E7A

Preview Lab

Preview with #8A7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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