#8C842E#8C842E

#8C842E is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.106 H 104.0°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8C842E
RGBrgb(140, 132, 46)
HSLhsl(55, 51%, 36%)
HSVhsv(55, 67%, 55%)
CMYKcmyk(0%, 5.7%, 67.1%, 45.1%)
CIE-LABlab(54.32, -7.90, 45.76)
CIE-LCHlch(54.32, 46.43, 99.79°)
OKLaboklab(60.35% -0.0257 0.1033)
OKLCHoklch(60.35% 0.107 104)
XYZxyz(19.5604, 22.2760, 5.8536)
Luminance0.2228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C842E #2E368C
analogous
#8C552E #8C842E #658C2E
triadic
#8C842E #2E8C84 #842E8C
tetradic
#8C842E #2E8C55 #2E368C #8C2E65
square
#8C842E #2E8C55 #2E368C #8C2E65
split-complementary
#8C842E #2E658C #552E8C
monochromatic
#302D10 #5E591F #8C842E #BAAF3D #CDC467

Accessibility & contrast

On white

3.85
#8C842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#8C842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C842E
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C842E#FFFFFF#000000##000000
##8C842E1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#908023
Deuteranopia (green-blind)
#928433
Tritanopia (blue-blind)
#967B72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8c842e;
/* rgb */ color: rgb(140, 132, 46);
/* oklch */ color: oklch(60.3% 0.106 104.0);
Tailwind
colors: {
  custom: {
    50: '#b0a76b',
    500: '#8c842e',
    950: '#000000',
  },
}
SCSS
$custom: #8c842e;
$custom-light: #b0a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#8c842e",
  "rgb": {
    "r": 140,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 54.894,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60348,
    "c": 0.1065,
    "h": 104
  },
  "luminance": 0.22275
}

Semantic roles & 50–950 ramp

primary
#8C842E
secondary
#6269B4
accent
#5ADA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8C842E

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

Preview Lab → · Contrast checker → · Palette generator →

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