#8D791A#8D791A

#8D791A is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.110 H 96.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8D791A
RGBrgb(141, 121, 26)
HSLhsl(50, 69%, 33%)
HSVhsv(50, 82%, 55%)
CMYKcmyk(0%, 14.2%, 81.6%, 44.7%)
CIE-LABlab(51.17, -2.33, 50.59)
CIE-LCHlch(51.17, 50.64, 92.64°)
OKLaboklab(57.83% -0.0122 0.1096)
OKLCHoklch(57.83% 0.11 96.4)
XYZxyz(18.0093, 19.4130, 3.7756)
Luminance0.1941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D791A #1A2E8D
analogous
#8D3F1A #8D791A #688D1A
triadic
#8D791A #1A8D79 #791A8D
tetradic
#8D791A #1A8D3F #1A2E8D #8D1A68
square
#8D791A #1A8D3F #1A2E8D #8D1A68
split-complementary
#8D791A #1A688D #3F1A8D
monochromatic
#262007 #594D10 #8D791A #C1A524 #DDC245

Accessibility & contrast

On white

4.30
#8D791A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8D791A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D791A
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D791A#FFFFFF#000000##000000
##8D791A1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#867602
Deuteranopia (green-blind)
#8B7D21
Tritanopia (blue-blind)
#996F67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8d791a;
/* rgb */ color: rgb(141, 121, 26);
/* oklch */ color: oklch(57.8% 0.110 96.4);
Tailwind
colors: {
  custom: {
    50: '#b29f60',
    500: '#8d791a',
    950: '#000000',
  },
}
SCSS
$custom: #8d791a;
$custom-light: #b29f60;
$custom-dark: #000000;
JSON
{
  "hex": "#8d791a",
  "rgb": {
    "r": 141,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 49.565,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57827,
    "c": 0.11032,
    "h": 96.4
  },
  "luminance": 0.19412
}

Semantic roles & 50–950 ramp

primary
#8D791A
secondary
#455ABE
accent
#5BEC3C
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8D791A

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

Preview Lab → · Contrast checker → · Palette generator →

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