#8A7A2F#8A7A2F

#8A7A2F is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.9% C 0.096 H 97.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A7A2F
RGBrgb(138, 122, 47)
HSLhsl(49, 49%, 36%)
HSVhsv(49, 66%, 54%)
CMYKcmyk(0%, 11.6%, 65.9%, 45.9%)
CIE-LABlab(51.30, -3.19, 42.05)
CIE-LCHlch(51.30, 42.17, 94.35°)
OKLaboklab(57.91% -0.0121 0.0957)
OKLCHoklch(57.91% 0.096 97.2)
XYZxyz(17.9546, 19.5284, 5.5124)
Luminance0.1953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A2F #2F3F8A
analogous
#8A4D2F #8A7A2F #6D8A2F
triadic
#8A7A2F #2F8A7A #7A2F8A
tetradic
#8A7A2F #2F8A4D #2F3F8A #8A2F6D
square
#8A7A2F #2F8A4D #2F3F8A #8A2F6D
split-complementary
#8A7A2F #2F6D8A #4D2F8A
monochromatic
#2F2910 #5C521F #8A7A2F #B8A23F #CCBA68

Accessibility & contrast

On white

4.28
#8A7A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#8A7A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A2F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A2F#FFFFFF#000000##000000
##8A7A2F1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867726
Deuteranopia (green-blind)
#8A7D33
Tritanopia (blue-blind)
#95716A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a2f;
/* rgb */ color: rgb(138, 122, 47);
/* oklch */ color: oklch(57.9% 0.096 97.2);
Tailwind
colors: {
  custom: {
    50: '#afa06b',
    500: '#8a7a2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a2f;
$custom-light: #afa06b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a2f",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 49.451,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5791,
    "c": 0.09647,
    "h": 97.2
  },
  "luminance": 0.19528
}

Semantic roles & 50–950 ramp

primary
#8A7A2F
secondary
#6270B3
accent
#67D94F
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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