#8C811F#8C811F

#8C811F is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.6% C 0.114 H 102.7°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8C811F
RGBrgb(140, 129, 31)
HSLhsl(54, 64%, 34%)
HSVhsv(54, 78%, 55%)
CMYKcmyk(0%, 7.9%, 77.9%, 45.1%)
CIE-LABlab(53.36, -7.05, 50.82)
CIE-LCHlch(53.36, 51.30, 97.90°)
OKLaboklab(59.55% -0.025 0.1112)
OKLCHoklch(59.55% 0.114 102.7)
XYZxyz(18.9137, 21.3757, 4.4257)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C811F #1F2A8C
analogous
#8C4A1F #8C811F #608C1F
triadic
#8C811F #1F8C81 #811F8C
tetradic
#8C811F #1F8C4A #1F2A8C #8C1F60
square
#8C811F #1F8C4A #1F2A8C #8C1F60
split-complementary
#8C811F #1F608C #4A1F8C
monochromatic
#282509 #5A5314 #8C811F #BEAF2A #D8CA4E

Accessibility & contrast

On white

3.98
#8C811F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#8C811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C811F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C811F#FFFFFF#000000##000000
##8C811F1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D09
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#97776E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8c811f;
/* rgb */ color: rgb(140, 129, 31);
/* oklch */ color: oklch(59.6% 0.114 102.7);
Tailwind
colors: {
  custom: {
    50: '#b1a563',
    500: '#8c811f',
    950: '#000000',
  },
}
SCSS
$custom: #8c811f;
$custom-light: #b1a563;
$custom-dark: #000000;
JSON
{
  "hex": "#8c811f",
  "rgb": {
    "r": 140,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 53.945,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59551,
    "c": 0.114,
    "h": 102.7
  },
  "luminance": 0.21375
}

Semantic roles & 50–950 ramp

primary
#8C811F
secondary
#4C57BB
accent
#52E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C811F

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

Preview Lab → · Contrast checker → · Palette generator →

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