#9D8A2E#9D8A2E

#9D8A2E is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.3% C 0.112 H 97.3°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9D8A2E
RGBrgb(157, 138, 46)
HSLhsl(50, 55%, 40%)
HSVhsv(50, 71%, 62%)
CMYKcmyk(0%, 12.1%, 70.7%, 38.4%)
CIE-LABlab(57.60, -3.48, 49.64)
CIE-LCHlch(57.60, 49.76, 94.01°)
OKLaboklab(63.33% -0.0142 0.111)
OKLCHoklch(63.33% 0.112 97.3)
XYZxyz(23.4874, 25.5435, 6.2775)
Luminance0.2554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A2E #2E419D
analogous
#9D532E #9D8A2E #789D2E
triadic
#9D8A2E #2E9D8A #8A2E9D
tetradic
#9D8A2E #2E9D53 #2E419D #9D2E78
square
#9D8A2E #2E9D53 #2E419D #9D2E78
split-complementary
#9D8A2E #2E789D #532E9D
monochromatic
#3E3712 #6E6020 #9D8A2E #C7B041 #D5C470

Accessibility & contrast

On white

3.44
#9D8A2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9D8A2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A2E
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A2E#FFFFFF#000000##000000
##9D8A2E1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#988721
Deuteranopia (green-blind)
#9D8D33
Tritanopia (blue-blind)
#A98077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a2e;
/* rgb */ color: rgb(157, 138, 46);
/* oklch */ color: oklch(63.3% 0.112 97.3);
Tailwind
colors: {
  custom: {
    50: '#bdab6c',
    500: '#9d8a2e',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a2e;
$custom-light: #bdab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a2e",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 49.73,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63333,
    "c": 0.11188,
    "h": 97.3
  },
  "luminance": 0.25542
}

Semantic roles & 50–950 ramp

primary
#9D8A2E
secondary
#6A78BD
accent
#63DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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