#8D842E#8D842E

#8D842E is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.4% C 0.106 H 103.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8D842E
RGBrgb(141, 132, 46)
HSLhsl(54, 51%, 37%)
HSVhsv(54, 67%, 55%)
CMYKcmyk(0%, 6.4%, 67.4%, 44.7%)
CIE-LABlab(54.41, -7.44, 45.88)
CIE-LCHlch(54.41, 46.48, 99.22°)
OKLaboklab(60.44% -0.0245 0.1036)
OKLCHoklch(60.44% 0.106 103.3)
XYZxyz(19.7297, 22.3633, 5.8615)
Luminance0.2236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D842E #2E378D
analogous
#8D552E #8D842E #678D2E
triadic
#8D842E #2E8D84 #842E8D
tetradic
#8D842E #2E8D55 #2E378D #8D2E67
square
#8D842E #2E8D55 #2E378D #8D2E67
split-complementary
#8D842E #2E678D #552E8D
monochromatic
#312E10 #5F591F #8D842E #BBAF3D #CEC468

Accessibility & contrast

On white

3.84
#8D842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#8D842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D842E
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D842E#FFFFFF#000000##000000
##8D842E1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d842e;
/* rgb */ color: rgb(141, 132, 46);
/* oklch */ color: oklch(60.4% 0.106 103.3);
Tailwind
colors: {
  custom: {
    50: '#b1a76b',
    500: '#8d842e',
    950: '#000000',
  },
}
SCSS
$custom: #8d842e;
$custom-light: #b1a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#8d842e",
  "rgb": {
    "r": 141,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 54.316,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60443,
    "c": 0.10644,
    "h": 103.3
  },
  "luminance": 0.22363
}

Semantic roles & 50–950 ramp

primary
#8D842E
secondary
#626AB5
accent
#5BDA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8D842E

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

Preview Lab → · Contrast checker → · Palette generator →

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