#8A791F#8A791F

#8A791F is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.6% C 0.107 H 98.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A791F
RGBrgb(138, 121, 31)
HSLhsl(50, 63%, 33%)
HSVhsv(50, 78%, 54%)
CMYKcmyk(0%, 12.3%, 77.5%, 45.9%)
CIE-LABlab(50.89, -3.53, 48.45)
CIE-LCHlch(50.89, 48.58, 94.17°)
OKLaboklab(57.55% -0.0149 0.1063)
OKLCHoklch(57.55% 0.107 98)
XYZxyz(17.5668, 19.1779, 4.0725)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A791F #1F308A
analogous
#8A431F #8A791F #658A1F
triadic
#8A791F #1F8A79 #791F8A
tetradic
#8A791F #1F8A43 #1F308A #8A1F65
square
#8A791F #1F8A43 #1F308A #8A1F65
split-complementary
#8A791F #1F658A #431F8A
monochromatic
#262109 #584D14 #8A791F #BCA52A #D7C14C

Accessibility & contrast

On white

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

On black

4.84
#8A791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A791F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A791F#FFFFFF#000000##000000
##8A791F1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760E
Deuteranopia (green-blind)
#8A7C25
Tritanopia (blue-blind)
#956F68
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a791f;
/* rgb */ color: rgb(138, 121, 31);
/* oklch */ color: oklch(57.6% 0.107 98.0);
Tailwind
colors: {
  custom: {
    50: '#b09f62',
    500: '#8a791f',
    950: '#000000',
  },
}
SCSS
$custom: #8a791f;
$custom-light: #b09f62;
$custom-dark: #000000;
JSON
{
  "hex": "#8a791f",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 50.467,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5755,
    "c": 0.10732,
    "h": 98
  },
  "luminance": 0.19177
}

Semantic roles & 50–950 ramp

primary
#8A791F
secondary
#4B5DBA
accent
#5CE641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A791F

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

Preview Lab → · Contrast checker → · Palette generator →

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