#8A772B#8A772B

#8A772B is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 57.2% C 0.097 H 95.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A772B
RGBrgb(138, 119, 43)
HSLhsl(48, 52%, 35%)
HSVhsv(48, 69%, 54%)
CMYKcmyk(0%, 13.8%, 68.8%, 45.9%)
CIE-LABlab(50.42, -1.76, 42.96)
CIE-LCHlch(50.42, 43.00, 92.35°)
OKLaboklab(57.2% -0.0085 0.097)
OKLCHoklch(57.2% 0.097 95)
XYZxyz(17.5149, 18.7723, 4.9859)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A772B #2B3E8A
analogous
#8A472B #8A772B #6D8A2B
triadic
#8A772B #2B8A77 #772B8A
tetradic
#8A772B #2B8A47 #2B3E8A #8A2B6D
square
#8A772B #2B8A47 #2B3E8A #8A2B6D
split-complementary
#8A772B #2B6D8A #472B8A
monochromatic
#2D270E #5B4F1C #8A772B #B99F3A #CEB861

Accessibility & contrast

On white

4.42
#8A772B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#8A772B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A772B
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A772B#FFFFFF#000000##000000
##8A772B1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#837521
Deuteranopia (green-blind)
#887B2F
Tritanopia (blue-blind)
#956E67
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a772b;
/* rgb */ color: rgb(138, 119, 43);
/* oklch */ color: oklch(57.2% 0.097 95.0);
Tailwind
colors: {
  custom: {
    50: '#af9d68',
    500: '#8a772b',
    950: '#000000',
  },
}
SCSS
$custom: #8a772b;
$custom-light: #af9d68;
$custom-dark: #000000;
JSON
{
  "hex": "#8a772b",
  "rgb": {
    "r": 138,
    "g": 119,
    "b": 43
  },
  "hsl": {
    "h": 48,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57202,
    "c": 0.09736,
    "h": 95
  },
  "luminance": 0.18771
}

Semantic roles & 50–950 ramp

primary
#8A772B
secondary
#5D6EB4
accent
#69DC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A772B

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

Preview Lab → · Contrast checker → · Palette generator →

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