#8C841F#8C841F

#8C841F is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.2% C 0.117 H 104.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8C841F
RGBrgb(140, 132, 31)
HSLhsl(56, 64%, 34%)
HSVhsv(56, 78%, 55%)
CMYKcmyk(0%, 5.7%, 77.9%, 45.1%)
CIE-LABlab(54.22, -8.69, 51.61)
CIE-LCHlch(54.22, 52.34, 99.56°)
OKLaboklab(60.23% -0.0296 0.1129)
OKLCHoklch(60.23% 0.117 104.7)
XYZxyz(19.3146, 22.1777, 4.5594)
Luminance0.2218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C841F #1F278C
analogous
#8C4D1F #8C841F #5D8C1F
triadic
#8C841F #1F8C84 #841F8C
tetradic
#8C841F #1F8C4D #1F278C #8C1F5D
square
#8C841F #1F8C4D #1F278C #8C1F5D
split-complementary
#8C841F #1F5D8C #4D1F8C
monochromatic
#282609 #5A5514 #8C841F #BEB32A #D8CE4E

Accessibility & contrast

On white

3.86
#8C841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#8C841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C841F
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C841F#FFFFFF#000000##000000
##8C841F1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#977A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8c841f;
/* rgb */ color: rgb(140, 132, 31);
/* oklch */ color: oklch(60.2% 0.117 104.7);
Tailwind
colors: {
  custom: {
    50: '#b1a763',
    500: '#8c841f',
    950: '#000000',
  },
}
SCSS
$custom: #8c841f;
$custom-light: #b1a763;
$custom-dark: #000000;
JSON
{
  "hex": "#8c841f",
  "rgb": {
    "r": 140,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 55.596,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60233,
    "c": 0.11674,
    "h": 104.7
  },
  "luminance": 0.22177
}

Semantic roles & 50–950 ramp

primary
#8C841F
secondary
#4C54BB
accent
#4DE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C841F

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

Preview Lab → · Contrast checker → · Palette generator →

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