#9D8D40#9D8D40

#9D8D40 is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.2% C 0.099 H 97.7°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9D8D40
RGBrgb(157, 141, 64)
HSLhsl(50, 42%, 43%)
HSVhsv(50, 59%, 62%)
CMYKcmyk(0%, 10.2%, 59.2%, 38.4%)
CIE-LABlab(58.59, -3.93, 42.47)
CIE-LCHlch(58.59, 42.65, 95.29°)
OKLaboklab(64.17% -0.0133 0.0985)
OKLCHoklch(64.17% 0.099 97.7)
XYZxyz(24.3559, 26.5891, 8.6988)
Luminance0.2659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D40 #40509D
analogous
#9D5E40 #9D8D40 #7E9D40
triadic
#9D8D40 #409D8D #8D409D
tetradic
#9D8D40 #409D5E #40509D #9D407E
square
#9D8D40 #409D5E #40509D #9D407E
split-complementary
#9D8D40 #407E9D #5E409D
monochromatic
#463F1D #72662E #9D8D40 #BDAD5D #CFC389

Accessibility & contrast

On white

3.32
#9D8D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#9D8D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D40
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D40#FFFFFF#000000##000000
##9D8D401.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A38
Deuteranopia (green-blind)
#9E8F44
Tritanopia (blue-blind)
#A8847C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8d40;
/* rgb */ color: rgb(157, 141, 64);
/* oklch */ color: oklch(64.2% 0.099 97.7);
Tailwind
colors: {
  custom: {
    50: '#bcae78',
    500: '#9d8d40',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d40;
$custom-light: #bcae78;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d40",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 49.677,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.64171,
    "c": 0.09943,
    "h": 97.7
  },
  "luminance": 0.26588
}

Semantic roles & 50–950 ramp

primary
#9D8D40
secondary
#7F89B9
accent
#6BD256
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9D8D40

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

Preview Lab → · Contrast checker → · Palette generator →

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