#8A772F#8A772F

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

Color values

HEX#8A772F
RGBrgb(138, 119, 47)
HSLhsl(47, 49%, 36%)
HSVhsv(47, 66%, 54%)
CMYKcmyk(0%, 13.8%, 65.9%, 45.9%)
CIE-LABlab(50.46, -1.50, 41.14)
CIE-LCHlch(50.46, 41.16, 92.09°)
OKLaboklab(57.24% -0.0072 0.0938)
OKLCHoklch(57.24% 0.094 94.4)
XYZxyz(17.5920, 18.8031, 5.3915)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A772F #2F428A
analogous
#8A4A2F #8A772F #708A2F
triadic
#8A772F #2F8A77 #772F8A
tetradic
#8A772F #2F8A4A #2F428A #8A2F70
square
#8A772F #2F8A4A #2F428A #8A2F70
split-complementary
#8A772F #2F708A #4A2F8A
monochromatic
#2F2810 #5C501F #8A772F #B89E3F #CCB768

Accessibility & contrast

On white

4.41
#8A772F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#8A772F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A772F
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A772F#FFFFFF#000000##000000
##8A772F1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#837527
Deuteranopia (green-blind)
#887B32
Tritanopia (blue-blind)
#956E68
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a772f;
/* rgb */ color: rgb(138, 119, 47);
/* oklch */ color: oklch(57.2% 0.094 94.4);
Tailwind
colors: {
  custom: {
    50: '#af9e6b',
    500: '#8a772f',
    950: '#000000',
  },
}
SCSS
$custom: #8a772f;
$custom-light: #af9e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a772f",
  "rgb": {
    "r": 138,
    "g": 119,
    "b": 47
  },
  "hsl": {
    "h": 47.473,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57243,
    "c": 0.09406,
    "h": 94.4
  },
  "luminance": 0.18802
}

Semantic roles & 50–950 ramp

primary
#8A772F
secondary
#6273B3
accent
#6CD94F
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A772F

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

Preview Lab → · Contrast checker → · Palette generator →

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