#9D8A40#9D8A40

#9D8A40 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.097 H 95.1°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9D8A40
RGBrgb(157, 138, 64)
HSLhsl(48, 42%, 43%)
HSVhsv(48, 59%, 62%)
CMYKcmyk(0%, 12.1%, 59.2%, 38.4%)
CIE-LABlab(57.77, -2.28, 41.53)
CIE-LCHlch(57.77, 41.59, 93.15°)
OKLaboklab(63.52% -0.0086 0.0965)
OKLCHoklch(63.52% 0.097 95.1)
XYZxyz(23.9195, 25.7163, 8.5533)
Luminance0.2571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A40 #40539D
analogous
#9D5B40 #9D8A40 #819D40
triadic
#9D8A40 #409D8A #8A409D
tetradic
#9D8A40 #409D5B #40539D #9D4081
square
#9D8A40 #409D5B #40539D #9D4081
split-complementary
#9D8A40 #40819D #5B409D
monochromatic
#463E1D #72642E #9D8A40 #BDA95D #CFC089

Accessibility & contrast

On white

3.42
#9D8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9D8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A40
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A40#FFFFFF#000000##000000
##9D8A401.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978739
Deuteranopia (green-blind)
#9C8D43
Tritanopia (blue-blind)
#A98179
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8a40;
/* rgb */ color: rgb(157, 138, 64);
/* oklch */ color: oklch(63.5% 0.097 95.1);
Tailwind
colors: {
  custom: {
    50: '#bcab77',
    500: '#9d8a40',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a40;
$custom-light: #bcab77;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a40",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 47.742,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.63518,
    "c": 0.09689,
    "h": 95.1
  },
  "luminance": 0.25715
}

Semantic roles & 50–950 ramp

primary
#9D8A40
secondary
#7F8BB9
accent
#6FD256
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9D8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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