#8D842D#8D842D

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

Color values

HEX#8D842D
RGBrgb(141, 132, 45)
HSLhsl(54, 52%, 36%)
HSVhsv(54, 68%, 55%)
CMYKcmyk(0%, 6.4%, 68.1%, 44.7%)
CIE-LABlab(54.40, -7.51, 46.31)
CIE-LCHlch(54.40, 46.91, 99.21°)
OKLaboklab(60.43% -0.0248 0.1043)
OKLCHoklch(60.43% 0.107 103.4)
XYZxyz(19.7102, 22.3555, 5.7589)
Luminance0.2235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D842D #2D368D
analogous
#8D542D #8D842D #668D2D
triadic
#8D842D #2D8D84 #842D8D
tetradic
#8D842D #2D8D54 #2D368D #8D2D66
square
#8D842D #2D8D54 #2D368D #8D2D66
split-complementary
#8D842D #2D668D #542D8D
monochromatic
#302D0F #5F591E #8D842D #BBAF3C #CEC466

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D842D#FFFFFF#000000##000000
##8D842D1.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)
#908021
Deuteranopia (green-blind)
#938432
Tritanopia (blue-blind)
#987B72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8d842d;
/* rgb */ color: rgb(141, 132, 45);
/* oklch */ color: oklch(60.4% 0.107 103.4);
Tailwind
colors: {
  custom: {
    50: '#b1a76b',
    500: '#8d842d',
    950: '#000000',
  },
}
SCSS
$custom: #8d842d;
$custom-light: #b1a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#8d842d",
  "rgb": {
    "r": 141,
    "g": 132,
    "b": 45
  },
  "hsl": {
    "h": 54.375,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60434,
    "c": 0.10722,
    "h": 103.4
  },
  "luminance": 0.22355
}

Semantic roles & 50–950 ramp

primary
#8D842D
secondary
#6169B5
accent
#5ADB4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8D842D

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

Preview Lab → · Contrast checker → · Palette generator →

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