#8A792F#8A792F

#8A792F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.7% C 0.096 H 96.3°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A792F
RGBrgb(138, 121, 47)
HSLhsl(49, 49%, 36%)
HSVhsv(49, 66%, 54%)
CMYKcmyk(0%, 12.3%, 65.9%, 45.9%)
CIE-LABlab(51.02, -2.63, 41.74)
CIE-LCHlch(51.02, 41.83, 93.61°)
OKLaboklab(57.69% -0.0105 0.0951)
OKLCHoklch(57.69% 0.096 96.3)
XYZxyz(17.8325, 19.2841, 5.4717)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A792F #2F408A
analogous
#8A4C2F #8A792F #6E8A2F
triadic
#8A792F #2F8A79 #792F8A
tetradic
#8A792F #2F8A4C #2F408A #8A2F6E
square
#8A792F #2F8A4C #2F408A #8A2F6E
split-complementary
#8A792F #2F6E8A #4C2F8A
monochromatic
#2F2910 #5C511F #8A792F #B8A13F #CCB968

Accessibility & contrast

On white

4.32
#8A792F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A792F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A792F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A792F#FFFFFF#000000##000000
##8A792F1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857626
Deuteranopia (green-blind)
#897C33
Tritanopia (blue-blind)
#957069
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a792f;
/* rgb */ color: rgb(138, 121, 47);
/* oklch */ color: oklch(57.7% 0.096 96.3);
Tailwind
colors: {
  custom: {
    50: '#af9f6b',
    500: '#8a792f',
    950: '#000000',
  },
}
SCSS
$custom: #8a792f;
$custom-light: #af9f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a792f",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 47
  },
  "hsl": {
    "h": 48.791,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57687,
    "c": 0.09565,
    "h": 96.3
  },
  "luminance": 0.19283
}

Semantic roles & 50–950 ramp

primary
#8A792F
secondary
#6271B3
accent
#69D94F
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A792F

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

Preview Lab → · Contrast checker → · Palette generator →

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