#8D791F#8D791F

#8D791F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.9% C 0.108 H 95.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8D791F
RGBrgb(141, 121, 31)
HSLhsl(49, 64%, 34%)
HSVhsv(49, 78%, 55%)
CMYKcmyk(0%, 14.2%, 78%, 44.7%)
CIE-LABlab(51.20, -2.13, 48.84)
CIE-LCHlch(51.20, 48.89, 92.50°)
OKLaboklab(57.86% -0.0111 0.107)
OKLCHoklch(57.86% 0.108 95.9)
XYZxyz(18.0702, 19.4374, 4.0961)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D791F #1F338D
analogous
#8D421F #8D791F #6A8D1F
triadic
#8D791F #1F8D79 #791F8D
tetradic
#8D791F #1F8D42 #1F338D #8D1F6A
square
#8D791F #1F8D42 #1F338D #8D1F6A
split-complementary
#8D791F #1F6A8D #421F8D
monochromatic
#292309 #5B4E14 #8D791F #BFA42A #D8BF4E

Accessibility & contrast

On white

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

On black

4.89
#8D791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D791F
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D791F#FFFFFF#000000##000000
##8D791F1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760D
Deuteranopia (green-blind)
#8B7D25
Tritanopia (blue-blind)
#996F68
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8d791f;
/* rgb */ color: rgb(141, 121, 31);
/* oklch */ color: oklch(57.9% 0.108 95.9);
Tailwind
colors: {
  custom: {
    50: '#b29f62',
    500: '#8d791f',
    950: '#000000',
  },
}
SCSS
$custom: #8d791f;
$custom-light: #b29f62;
$custom-dark: #000000;
JSON
{
  "hex": "#8d791f",
  "rgb": {
    "r": 141,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 49.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57859,
    "c": 0.10755,
    "h": 95.9
  },
  "luminance": 0.19436
}

Semantic roles & 50–950 ramp

primary
#8D791F
secondary
#4D61BB
accent
#5FE741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8D791F

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

Preview Lab → · Contrast checker → · Palette generator →

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