#9D8A2F#9D8A2F

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

Color values

HEX#9D8A2F
RGBrgb(157, 138, 47)
HSLhsl(50, 54%, 40%)
HSVhsv(50, 70%, 62%)
CMYKcmyk(0%, 12.1%, 70.1%, 38.4%)
CIE-LABlab(57.61, -3.43, 49.22)
CIE-LCHlch(57.61, 49.34, 93.98°)
OKLaboklab(63.34% -0.014 0.1103)
OKLCHoklch(63.34% 0.111 97.2)
XYZxyz(23.5073, 25.5515, 6.3825)
Luminance0.2555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A2F #2F429D
analogous
#9D532F #9D8A2F #799D2F
triadic
#9D8A2F #2F9D8A #8A2F9D
tetradic
#9D8A2F #2F9D53 #2F429D #9D2F79
square
#9D8A2F #2F9D53 #2F429D #9D2F79
split-complementary
#9D8A2F #2F799D #532F9D
monochromatic
#3F3713 #6E6121 #9D8A2F #C7B043 #D5C472

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A2F#FFFFFF#000000##000000
##9D8A2F1.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)
#988722
Deuteranopia (green-blind)
#9D8D34
Tritanopia (blue-blind)
#A98077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a2f;
/* rgb */ color: rgb(157, 138, 47);
/* oklch */ color: oklch(63.3% 0.111 97.2);
Tailwind
colors: {
  custom: {
    50: '#bdab6d',
    500: '#9d8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a2f;
$custom-light: #bdab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a2f",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 49.636,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.63342,
    "c": 0.11115,
    "h": 97.2
  },
  "luminance": 0.2555
}

Semantic roles & 50–950 ramp

primary
#9D8A2F
secondary
#6B79BC
accent
#64DD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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