#9D9A42#9D9A42

#9D9A42 is a light, moderate yellow. Relative luminance 0.307; OKLCH L 67.1% C 0.110 H 107.2°. Best body text is #000000 at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#9D9A42
RGBrgb(157, 154, 66)
HSLhsl(58, 41%, 44%)
HSVhsv(58, 58%, 62%)
CMYKcmyk(0%, 1.9%, 58%, 38.4%)
CIE-LABlab(62.23, -10.79, 45.62)
CIE-LCHlch(62.23, 46.87, 103.31°)
OKLaboklab(67.07% -0.0327 0.1055)
OKLCHoklch(67.07% 0.11 107.2)
XYZxyz(26.4444, 30.6734, 9.6808)
Luminance0.3067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9A42 #42459D
analogous
#9D6C42 #9D9A42 #729D42
triadic
#9D9A42 #429D9A #9A429D
tetradic
#9D9A42 #429D6C #42459D #9D4272
square
#9D9A42 #429D6C #42459D #9D4272
split-complementary
#9D9A42 #42729D #6C429D
monochromatic
#47451E #727030 #9D9A42 #BCB960 #CECC8B

Accessibility & contrast

On white

2.94
#9D9A42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.13
#9D9A42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D9A42
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9A42#FFFFFF#000000##000000
##9D9A421.002.947.137.13
#FFFFFF2.941.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69439
Deuteranopia (green-blind)
#A89847
Tritanopia (blue-blind)
#A79187
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9d9a42;
/* rgb */ color: rgb(157, 154, 66);
/* oklch */ color: oklch(67.1% 0.110 107.2);
Tailwind
colors: {
  custom: {
    50: '#bcb77a',
    500: '#9d9a42',
    950: '#000000',
  },
}
SCSS
$custom: #9d9a42;
$custom-light: #bcb77a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9a42",
  "rgb": {
    "r": 157,
    "g": 154,
    "b": 66
  },
  "hsl": {
    "h": 58.022,
    "s": 40.807,
    "l": 43.725
  },
  "oklch": {
    "l": 0.67067,
    "c": 0.11047,
    "h": 107.2
  },
  "luminance": 0.30673
}

Semantic roles & 50–950 ramp

primary
#9D9A42
secondary
#8283B9
accent
#5BD157
background
#FBFBF7
surface
#F7F6EE
border
#D0D0C9
text
#121109
muted
#81807B

Preview Lab

Preview with #9D9A42

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

Preview Lab → · Contrast checker → · Palette generator →

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