#8A791C#8A791C

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

Color values

HEX#8A791C
RGBrgb(138, 121, 28)
HSLhsl(51, 66%, 33%)
HSVhsv(51, 80%, 54%)
CMYKcmyk(0%, 12.3%, 79.7%, 45.9%)
CIE-LABlab(50.88, -3.66, 49.53)
CIE-LCHlch(50.88, 49.66, 94.22°)
OKLaboklab(57.53% -0.0156 0.1079)
OKLCHoklch(57.53% 0.109 98.2)
XYZxyz(17.5291, 19.1628, 3.8739)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A791C #1C2D8A
analogous
#8A421C #8A791C #648A1C
triadic
#8A791C #1C8A79 #791C8A
tetradic
#8A791C #1C8A42 #1C2D8A #8A1C64
square
#8A791C #1C8A42 #1C2D8A #8A1C64
split-complementary
#8A791C #1C648A #421C8A
monochromatic
#242007 #574C12 #8A791C #BDA626 #DAC347

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A791C#FFFFFF#000000##000000
##8A791C1.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)
#867607
Deuteranopia (green-blind)
#8A7C23
Tritanopia (blue-blind)
#956F67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a791c;
/* rgb */ color: rgb(138, 121, 28);
/* oklch */ color: oklch(57.5% 0.109 98.2);
Tailwind
colors: {
  custom: {
    50: '#b09f61',
    500: '#8a791c',
    950: '#000000',
  },
}
SCSS
$custom: #8a791c;
$custom-light: #b09f61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a791c",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 50.727,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57531,
    "c": 0.10906,
    "h": 98.2
  },
  "luminance": 0.19162
}

Semantic roles & 50–950 ramp

primary
#8A791C
secondary
#4658BB
accent
#59E93F
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8A791C

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

Preview Lab → · Contrast checker → · Palette generator →

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