#9D8B2D#9D8B2D

#9D8B2D is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.113 H 98.2°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9D8B2D
RGBrgb(157, 139, 45)
HSLhsl(50, 55%, 40%)
HSVhsv(50, 71%, 62%)
CMYKcmyk(0%, 11.5%, 71.3%, 38.4%)
CIE-LABlab(57.87, -4.09, 50.32)
CIE-LCHlch(57.87, 50.49, 94.64°)
OKLaboklab(63.54% -0.0161 0.1122)
OKLCHoklch(63.54% 0.113 98.2)
XYZxyz(23.6120, 25.8240, 6.2229)
Luminance0.2582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B2D #2D3F9D
analogous
#9D532D #9D8B2D #779D2D
triadic
#9D8B2D #2D9D8B #8B2D9D
tetradic
#9D8B2D #2D9D53 #2D3F9D #9D2D77
square
#9D8B2D #2D9D53 #2D3F9D #9D2D77
split-complementary
#9D8B2D #2D779D #532D9D
monochromatic
#3E3712 #6D611F #9D8B2D #C8B23F #D6C56F

Accessibility & contrast

On white

3.41
#9D8B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#9D8B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8B2D
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8B2D#FFFFFF#000000##000000
##9D8B2D1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871F
Deuteranopia (green-blind)
#9E8E33
Tritanopia (blue-blind)
#A98178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b2d;
/* rgb */ color: rgb(157, 139, 45);
/* oklch */ color: oklch(63.5% 0.113 98.2);
Tailwind
colors: {
  custom: {
    50: '#bdac6c',
    500: '#9d8b2d',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b2d;
$custom-light: #bdac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b2d",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 50.357,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63544,
    "c": 0.11339,
    "h": 98.2
  },
  "luminance": 0.25823
}

Semantic roles & 50–950 ramp

primary
#9D8B2D
secondary
#6976BD
accent
#61DF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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