#8A791D#8A791D

#8A791D is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.5% C 0.109 H 98.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8A791D
RGBrgb(138, 121, 29)
HSLhsl(51, 65%, 33%)
HSVhsv(51, 79%, 54%)
CMYKcmyk(0%, 12.3%, 79%, 45.9%)
CIE-LABlab(50.88, -3.62, 49.17)
CIE-LCHlch(50.88, 49.31, 94.21°)
OKLaboklab(57.54% -0.0154 0.1074)
OKLCHoklch(57.54% 0.109 98.2)
XYZxyz(17.5413, 19.1676, 3.9379)
Luminance0.1917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A791D #1D2E8A
analogous
#8A421D #8A791D #648A1D
triadic
#8A791D #1D8A79 #791D8A
tetradic
#8A791D #1D8A42 #1D2E8A #8A1D64
square
#8A791D #1D8A42 #1D2E8A #8A1D64
split-complementary
#8A791D #1D648A #421D8A
monochromatic
#252008 #574D12 #8A791D #BDA528 #D9C249

Accessibility & contrast

On white

4.34
#8A791D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#8A791D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A791D
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A791D#FFFFFF#000000##000000
##8A791D1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867609
Deuteranopia (green-blind)
#8A7C23
Tritanopia (blue-blind)
#956F68
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a791d;
/* rgb */ color: rgb(138, 121, 29);
/* oklch */ color: oklch(57.5% 0.109 98.2);
Tailwind
colors: {
  custom: {
    50: '#b09f61',
    500: '#8a791d',
    950: '#000000',
  },
}
SCSS
$custom: #8a791d;
$custom-light: #b09f61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a791d",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 29
  },
  "hsl": {
    "h": 50.642,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57537,
    "c": 0.10851,
    "h": 98.2
  },
  "luminance": 0.19167
}

Semantic roles & 50–950 ramp

primary
#8A791D
secondary
#485ABB
accent
#5AE840
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A791D

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

Preview Lab → · Contrast checker → · Palette generator →

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