#9D8B2B#9D8B2B

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

Color values

HEX#9D8B2B
RGBrgb(157, 139, 43)
HSLhsl(51, 57%, 39%)
HSVhsv(51, 73%, 62%)
CMYKcmyk(0%, 11.5%, 72.6%, 38.4%)
CIE-LABlab(57.86, -4.19, 51.12)
CIE-LCHlch(57.86, 51.30, 94.69°)
OKLaboklab(63.53% -0.0166 0.1136)
OKLCHoklch(63.53% 0.115 98.3)
XYZxyz(23.5744, 25.8089, 6.0249)
Luminance0.2581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B2B #2B3D9D
analogous
#9D522B #9D8B2B #769D2B
triadic
#9D8B2B #2B9D8B #8B2B9D
tetradic
#9D8B2B #2B9D52 #2B3D9D #9D2B76
square
#9D8B2B #2B9D52 #2B3D9D #9D2B76
split-complementary
#9D8B2B #2B769D #522B9D
monochromatic
#3D3611 #6D601E #9D8B2B #CAB33C #D7C66C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8B2B#FFFFFF#000000##000000
##9D8B2B1.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)
#99871C
Deuteranopia (green-blind)
#9E8E31
Tritanopia (blue-blind)
#A98078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b2b;
/* rgb */ color: rgb(157, 139, 43);
/* oklch */ color: oklch(63.5% 0.115 98.3);
Tailwind
colors: {
  custom: {
    50: '#bdac6b',
    500: '#9d8b2b',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b2b;
$custom-light: #bdac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b2b",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 43
  },
  "hsl": {
    "h": 50.526,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63528,
    "c": 0.11477,
    "h": 98.3
  },
  "luminance": 0.25808
}

Semantic roles & 50–950 ramp

primary
#9D8B2B
secondary
#6674BD
accent
#60E048
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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