#8A7E2F#8A7E2F

#8A7E2F is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.100 H 100.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A7E2F
RGBrgb(138, 126, 47)
HSLhsl(52, 49%, 36%)
HSVhsv(52, 66%, 54%)
CMYKcmyk(0%, 8.7%, 65.9%, 45.9%)
CIE-LABlab(52.43, -5.43, 43.26)
CIE-LCHlch(52.43, 43.60, 97.16°)
OKLaboklab(58.81% -0.0185 0.0983)
OKLCHoklch(58.81% 0.1 100.7)
XYZxyz(18.4559, 20.5310, 5.6795)
Luminance0.2053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E2F #2F3B8A
analogous
#8A512F #8A7E2F #698A2F
triadic
#8A7E2F #2F8A7E #7E2F8A
tetradic
#8A7E2F #2F8A51 #2F3B8A #8A2F69
square
#8A7E2F #2F8A51 #2F3B8A #8A2F69
split-complementary
#8A7E2F #2F698A #512F8A
monochromatic
#2F2B10 #5C541F #8A7E2F #B8A83F #CCBE68

Accessibility & contrast

On white

4.11
#8A7E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A7E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E2F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E2F#FFFFFF#000000##000000
##8A7E2F1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A25
Deuteranopia (green-blind)
#8D7F33
Tritanopia (blue-blind)
#94756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e2f;
/* rgb */ color: rgb(138, 126, 47);
/* oklch */ color: oklch(58.8% 0.100 100.7);
Tailwind
colors: {
  custom: {
    50: '#afa36b',
    500: '#8a7e2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e2f;
$custom-light: #afa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e2f",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 52.088,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.58808,
    "c": 0.1,
    "h": 100.7
  },
  "luminance": 0.2053
}

Semantic roles & 50–950 ramp

primary
#8A7E2F
secondary
#626DB3
accent
#61D94F
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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