#8D791B#8D791B

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

Color values

HEX#8D791B
RGBrgb(141, 121, 27)
HSLhsl(49, 68%, 33%)
HSVhsv(49, 81%, 55%)
CMYKcmyk(0%, 14.2%, 80.9%, 44.7%)
CIE-LABlab(51.17, -2.29, 50.25)
CIE-LCHlch(51.17, 50.30, 92.61°)
OKLaboklab(57.83% -0.012 0.1091)
OKLCHoklch(57.83% 0.11 96.3)
XYZxyz(18.0207, 19.4176, 3.8355)
Luminance0.1942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D791B #1B2F8D
analogous
#8D401B #8D791B #688D1B
triadic
#8D791B #1B8D79 #791B8D
tetradic
#8D791B #1B8D40 #1B2F8D #8D1B68
square
#8D791B #1B8D40 #1B2F8D #8D1B68
split-complementary
#8D791B #1B688D #401B8D
monochromatic
#262107 #5A4D11 #8D791B #C0A525 #DCC247

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D791B#FFFFFF#000000##000000
##8D791B1.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)
#867604
Deuteranopia (green-blind)
#8B7D22
Tritanopia (blue-blind)
#996F67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8d791b;
/* rgb */ color: rgb(141, 121, 27);
/* oklch */ color: oklch(57.8% 0.110 96.3);
Tailwind
colors: {
  custom: {
    50: '#b29f60',
    500: '#8d791b',
    950: '#000000',
  },
}
SCSS
$custom: #8d791b;
$custom-light: #b29f60;
$custom-dark: #000000;
JSON
{
  "hex": "#8d791b",
  "rgb": {
    "r": 141,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 49.474,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57833,
    "c": 0.1098,
    "h": 96.3
  },
  "luminance": 0.19417
}

Semantic roles & 50–950 ramp

primary
#8D791B
secondary
#465BBD
accent
#5CEB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8D791B

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

Preview Lab → · Contrast checker → · Palette generator →

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