#9D8A42#9D8A42

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

Color values

HEX#9D8A42
RGBrgb(157, 138, 66)
HSLhsl(47, 41%, 44%)
HSVhsv(47, 58%, 62%)
CMYKcmyk(0%, 12.1%, 58%, 38.4%)
CIE-LABlab(57.79, -2.13, 40.56)
CIE-LCHlch(57.79, 40.62, 93.00°)
OKLaboklab(63.54% -0.0079 0.0947)
OKLCHoklch(63.54% 0.095 94.8)
XYZxyz(23.9774, 25.7395, 8.8584)
Luminance0.2574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A42 #42559D
analogous
#9D5C42 #9D8A42 #829D42
triadic
#9D8A42 #429D8A #8A429D
tetradic
#9D8A42 #429D5C #42559D #9D4282
square
#9D8A42 #429D5C #42559D #9D4282
split-complementary
#9D8A42 #42829D #5C429D
monochromatic
#473E1E #726430 #9D8A42 #BCA960 #CEC08B

Accessibility & contrast

On white

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

On black

6.15
#9D8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A42
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A42#FFFFFF#000000##000000
##9D8A421.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#97873B
Deuteranopia (green-blind)
#9C8D45
Tritanopia (blue-blind)
#A8817A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8a42;
/* rgb */ color: rgb(157, 138, 66);
/* oklch */ color: oklch(63.5% 0.095 94.8);
Tailwind
colors: {
  custom: {
    50: '#bcab79',
    500: '#9d8a42',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a42;
$custom-light: #bcab79;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a42",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 47.473,
    "s": 40.807,
    "l": 43.725
  },
  "oklch": {
    "l": 0.63542,
    "c": 0.095,
    "h": 94.8
  },
  "luminance": 0.25738
}

Semantic roles & 50–950 ramp

primary
#9D8A42
secondary
#828DB9
accent
#71D157
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9D8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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