#9D8A2D#9D8A2D

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

Color values

HEX#9D8A2D
RGBrgb(157, 138, 45)
HSLhsl(50, 55%, 40%)
HSVhsv(50, 71%, 62%)
CMYKcmyk(0%, 12.1%, 71.3%, 38.4%)
CIE-LABlab(57.59, -3.54, 50.05)
CIE-LCHlch(57.59, 50.17, 94.04°)
OKLaboklab(63.33% -0.0145 0.1117)
OKLCHoklch(63.33% 0.113 97.4)
XYZxyz(23.4679, 25.5357, 6.1749)
Luminance0.2554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A2D #2D409D
analogous
#9D522D #9D8A2D #789D2D
triadic
#9D8A2D #2D9D8A #8A2D9D
tetradic
#9D8A2D #2D9D52 #2D409D #9D2D78
square
#9D8A2D #2D9D52 #2D409D #9D2D78
split-complementary
#9D8A2D #2D789D #522D9D
monochromatic
#3E3612 #6D601F #9D8A2D #C8B13F #D6C46F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A2D#FFFFFF#000000##000000
##9D8A2D1.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)
#98871F
Deuteranopia (green-blind)
#9D8D32
Tritanopia (blue-blind)
#A97F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a2d;
/* rgb */ color: rgb(157, 138, 45);
/* oklch */ color: oklch(63.3% 0.113 97.4);
Tailwind
colors: {
  custom: {
    50: '#bdab6c',
    500: '#9d8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a2d;
$custom-light: #bdab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a2d",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 49.821,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63325,
    "c": 0.11259,
    "h": 97.4
  },
  "luminance": 0.25535
}

Semantic roles & 50–950 ramp

primary
#9D8A2D
secondary
#6977BD
accent
#62DF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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