#8C841B#8C841B

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

Color values

HEX#8C841B
RGBrgb(140, 132, 27)
HSLhsl(56, 68%, 33%)
HSVhsv(56, 81%, 55%)
CMYKcmyk(0%, 5.7%, 80.7%, 45.1%)
CIE-LABlab(54.19, -8.85, 52.92)
CIE-LCHlch(54.19, 53.66, 99.50°)
OKLaboklab(60.21% -0.0304 0.1149)
OKLCHoklch(60.21% 0.119 104.8)
XYZxyz(19.2652, 22.1579, 4.2988)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C841B #1B238C
analogous
#8C4B1B #8C841B #5C8C1B
triadic
#8C841B #1B8C84 #841B8C
tetradic
#8C841B #1B8C4B #1B238C #8C1B5C
square
#8C841B #1B8C4B #1B238C #8C1B5C
split-complementary
#8C841B #1B5C8C #4B1B8C
monochromatic
#252307 #595411 #8C841B #BFB425 #DBD146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C841B#FFFFFF#000000##000000
##8C841B1.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)
#938424
Tritanopia (blue-blind)
#977A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8c841b;
/* rgb */ color: rgb(140, 132, 27);
/* oklch */ color: oklch(60.2% 0.119 104.8);
Tailwind
colors: {
  custom: {
    50: '#b1a762',
    500: '#8c841b',
    950: '#000000',
  },
}
SCSS
$custom: #8c841b;
$custom-light: #b1a762;
$custom-dark: #000000;
JSON
{
  "hex": "#8c841b",
  "rgb": {
    "r": 140,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 55.752,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60209,
    "c": 0.11888,
    "h": 104.8
  },
  "luminance": 0.22157
}

Semantic roles & 50–950 ramp

primary
#8C841B
secondary
#464EBD
accent
#4AEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8C841B

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

Preview Lab → · Contrast checker → · Palette generator →

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