#8A791B#8A791B

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

Color values

HEX#8A791B
RGBrgb(138, 121, 27)
HSLhsl(51, 67%, 32%)
HSVhsv(51, 80%, 54%)
CMYKcmyk(0%, 12.3%, 80.4%, 45.9%)
CIE-LABlab(50.87, -3.70, 49.87)
CIE-LCHlch(50.87, 50.01, 94.24°)
OKLaboklab(57.53% -0.0158 0.1085)
OKLCHoklch(57.53% 0.11 98.3)
XYZxyz(17.5173, 19.1581, 3.8119)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A791B #1B2C8A
analogous
#8A421B #8A791B #638A1B
triadic
#8A791B #1B8A79 #791B8A
tetradic
#8A791B #1B8A42 #1B2C8A #8A1B63
square
#8A791B #1B8A42 #1B2C8A #8A1B63
split-complementary
#8A791B #1B638A #421B8A
monochromatic
#241F07 #574C11 #8A791B #BDA625 #DBC445

Accessibility & contrast

On white

4.35
#8A791B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A791B#FFFFFF#000000##000000
##8A791B1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867604
Deuteranopia (green-blind)
#8A7C22
Tritanopia (blue-blind)
#956F67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a791b;
/* rgb */ color: rgb(138, 121, 27);
/* oklch */ color: oklch(57.5% 0.110 98.3);
Tailwind
colors: {
  custom: {
    50: '#b09f60',
    500: '#8a791b',
    950: '#000000',
  },
}
SCSS
$custom: #8a791b;
$custom-light: #b09f60;
$custom-dark: #000000;
JSON
{
  "hex": "#8a791b",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 50.811,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57525,
    "c": 0.10962,
    "h": 98.3
  },
  "luminance": 0.19157
}

Semantic roles & 50–950 ramp

primary
#8A791B
secondary
#4557BC
accent
#58EA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A791B

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

Preview Lab → · Contrast checker → · Palette generator →

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