#8D8D40#8D8D40

#8D8D40 is a light, moderate yellow. Relative luminance 0.251; OKLCH L 62.7% C 0.100 H 109.0°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8D8D40
RGBrgb(141, 141, 64)
HSLhsl(60, 38%, 40%)
HSVhsv(60, 55%, 55%)
CMYKcmyk(0%, 0%, 54.6%, 44.7%)
CIE-LABlab(57.16, -10.98, 40.45)
CIE-LCHlch(57.16, 41.91, 105.19°)
OKLaboklab(62.69% -0.0325 0.0945)
OKLCHoklch(62.69% 0.1 109)
XYZxyz(21.4353, 25.0832, 8.5619)
Luminance0.2508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8D40 #40408D
analogous
#8D6640 #8D8D40 #668D40
triadic
#8D8D40 #408D8D #8D408D
tetradic
#8D8D40 #408D66 #40408D #8D4066
square
#8D8D40 #408D66 #40408D #8D4066
split-complementary
#8D8D40 #40668D #66408D
monochromatic
#39391A #63632D #8D8D40 #B3B357 #C6C681

Accessibility & contrast

On white

3.49
#8D8D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#8D8D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8D40
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8D40#FFFFFF#000000##000000
##8D8D401.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978838
Deuteranopia (green-blind)
#988A44
Tritanopia (blue-blind)
#96857C
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8d8d40;
/* rgb */ color: rgb(141, 141, 64);
/* oklch */ color: oklch(62.7% 0.100 109.0);
Tailwind
colors: {
  custom: {
    50: '#b0ae77',
    500: '#8d8d40',
    950: '#000000',
  },
}
SCSS
$custom: #8d8d40;
$custom-light: #b0ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8d40",
  "rgb": {
    "r": 141,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.62685,
    "c": 0.09994,
    "h": 109
  },
  "luminance": 0.25083
}

Semantic roles & 50–950 ramp

primary
#8D8D40
secondary
#7878B0
accent
#5ACE5A
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111009
muted
#807F7B

Preview Lab

Preview with #8D8D40

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

Preview Lab → · Contrast checker → · Palette generator →

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