#8C841A#8C841A

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

Color values

HEX#8C841A
RGBrgb(140, 132, 26)
HSLhsl(56, 69%, 33%)
HSVhsv(56, 81%, 55%)
CMYKcmyk(0%, 5.7%, 81.4%, 45.1%)
CIE-LABlab(54.19, -8.89, 53.23)
CIE-LCHlch(54.19, 53.97, 99.48°)
OKLaboklab(60.2% -0.0306 0.1154)
OKLCHoklch(60.2% 0.119 104.9)
XYZxyz(19.2538, 22.1533, 4.2389)
Luminance0.2215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C841A #1A228C
analogous
#8C4B1A #8C841A #5B8C1A
triadic
#8C841A #1A8C84 #841A8C
tetradic
#8C841A #1A8C4B #1A228C #8C1A5B
square
#8C841A #1A8C4B #1A228C #8C1A5B
split-complementary
#8C841A #1A5B8C #4B1A8C
monochromatic
#252307 #585310 #8C841A #C0B524 #DCD244

Accessibility & contrast

On white

3.87
#8C841A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#8C841A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C841A
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C841A#FFFFFF#000000##000000
##8C841A1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c841a;
/* rgb */ color: rgb(140, 132, 26);
/* oklch */ color: oklch(60.2% 0.119 104.9);
Tailwind
colors: {
  custom: {
    50: '#b1a761',
    500: '#8c841a',
    950: '#000000',
  },
}
SCSS
$custom: #8c841a;
$custom-light: #b1a761;
$custom-dark: #000000;
JSON
{
  "hex": "#8c841a",
  "rgb": {
    "r": 140,
    "g": 132,
    "b": 26
  },
  "hsl": {
    "h": 55.789,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60204,
    "c": 0.11938,
    "h": 104.9
  },
  "luminance": 0.22153
}

Semantic roles & 50–950 ramp

primary
#8C841A
secondary
#444DBE
accent
#49EC3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8C841A

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

Preview Lab → · Contrast checker → · Palette generator →

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