#8E842E#8E842E

#8E842E is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.5% C 0.106 H 102.7°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8E842E
RGBrgb(142, 132, 46)
HSLhsl(54, 51%, 37%)
HSVhsv(54, 68%, 56%)
CMYKcmyk(0%, 7%, 67.6%, 44.3%)
CIE-LABlab(54.50, -6.99, 46.00)
CIE-LCHlch(54.50, 46.53, 98.64°)
OKLaboklab(60.54% -0.0233 0.1038)
OKLCHoklch(60.54% 0.106 102.7)
XYZxyz(19.9005, 22.4514, 5.8695)
Luminance0.2245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E842E #2E388E
analogous
#8E542E #8E842E #688E2E
triadic
#8E842E #2E8E84 #842E8E
tetradic
#8E842E #2E8E54 #2E388E #8E2E68
square
#8E842E #2E8E54 #2E388E #8E2E68
split-complementary
#8E842E #2E688E #542E8E
monochromatic
#322E10 #60591F #8E842E #BCAF3D #CEC468

Accessibility & contrast

On white

3.82
#8E842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#8E842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E842E
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E842E#FFFFFF#000000##000000
##8E842E1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e842e;
/* rgb */ color: rgb(142, 132, 46);
/* oklch */ color: oklch(60.5% 0.106 102.7);
Tailwind
colors: {
  custom: {
    50: '#b2a76b',
    500: '#8e842e',
    950: '#000000',
  },
}
SCSS
$custom: #8e842e;
$custom-light: #b2a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#8e842e",
  "rgb": {
    "r": 142,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 53.75,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60539,
    "c": 0.10638,
    "h": 102.7
  },
  "luminance": 0.22451
}

Semantic roles & 50–950 ramp

primary
#8E842E
secondary
#636BB5
accent
#5CDB4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8E842E

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

Preview Lab → · Contrast checker → · Palette generator →

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