#8E792F#8E792F

#8E792F is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 58.1% C 0.096 H 93.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8E792F
RGBrgb(142, 121, 47)
HSLhsl(47, 50%, 37%)
HSVhsv(47, 67%, 56%)
CMYKcmyk(0%, 14.8%, 66.9%, 44.3%)
CIE-LABlab(51.42, -0.80, 42.29)
CIE-LCHlch(51.42, 42.30, 91.08°)
OKLaboklab(58.1% -0.0055 0.0961)
OKLCHoklch(58.1% 0.096 93.3)
XYZxyz(18.5067, 19.6318, 5.5033)
Luminance0.1963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E792F #2F448E
analogous
#8E4A2F #8E792F #748E2F
triadic
#8E792F #2F8E79 #792F8E
tetradic
#8E792F #2F8E4A #2F448E #8E2F74
square
#8E792F #2F8E4A #2F448E #8E2F74
split-complementary
#8E792F #2F748E #4A2F8E
monochromatic
#322B11 #605220 #8E792F #BCA03E #CEB86A

Accessibility & contrast

On white

4.26
#8E792F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8E792F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E792F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E792F#FFFFFF#000000##000000
##8E792F1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867726
Deuteranopia (green-blind)
#8B7D33
Tritanopia (blue-blind)
#997069
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e792f;
/* rgb */ color: rgb(142, 121, 47);
/* oklch */ color: oklch(58.1% 0.096 93.3);
Tailwind
colors: {
  custom: {
    50: '#b29f6b',
    500: '#8e792f',
    950: '#000000',
  },
}
SCSS
$custom: #8e792f;
$custom-light: #b29f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8e792f",
  "rgb": {
    "r": 142,
    "g": 121,
    "b": 47
  },
  "hsl": {
    "h": 46.737,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.58098,
    "c": 0.09627,
    "h": 93.3
  },
  "luminance": 0.19631
}

Semantic roles & 50–950 ramp

primary
#8E792F
secondary
#6476B5
accent
#6DDA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8E792F

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

Preview Lab → · Contrast checker → · Palette generator →

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