#8A7D2F#8A7D2F

#8A7D2F is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.6% C 0.099 H 99.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A7D2F
RGBrgb(138, 125, 47)
HSLhsl(51, 49%, 36%)
HSVhsv(51, 66%, 54%)
CMYKcmyk(0%, 9.4%, 65.9%, 45.9%)
CIE-LABlab(52.15, -4.87, 42.96)
CIE-LCHlch(52.15, 43.23, 96.47°)
OKLaboklab(58.58% -0.0169 0.0976)
OKLCHoklch(58.58% 0.099 99.8)
XYZxyz(18.3287, 20.2765, 5.6371)
Luminance0.2028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D2F #2F3C8A
analogous
#8A502F #8A7D2F #6A8A2F
triadic
#8A7D2F #2F8A7D #7D2F8A
tetradic
#8A7D2F #2F8A50 #2F3C8A #8A2F6A
square
#8A7D2F #2F8A50 #2F3C8A #8A2F6A
split-complementary
#8A7D2F #2F6A8A #502F8A
monochromatic
#2F2A10 #5C541F #8A7D2F #B8A63F #CCBD68

Accessibility & contrast

On white

4.15
#8A7D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8A7D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D2F
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D2F#FFFFFF#000000##000000
##8A7D2F1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A26
Deuteranopia (green-blind)
#8C7F33
Tritanopia (blue-blind)
#94746D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d2f;
/* rgb */ color: rgb(138, 125, 47);
/* oklch */ color: oklch(58.6% 0.099 99.8);
Tailwind
colors: {
  custom: {
    50: '#afa26b',
    500: '#8a7d2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d2f;
$custom-light: #afa26b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d2f",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 51.429,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.58583,
    "c": 0.09909,
    "h": 99.8
  },
  "luminance": 0.20276
}

Semantic roles & 50–950 ramp

primary
#8A7D2F
secondary
#626EB3
accent
#63D94F
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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