#9D8A2B#9D8A2B

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

Color values

HEX#9D8A2B
RGBrgb(157, 138, 43)
HSLhsl(50, 57%, 39%)
HSVhsv(50, 73%, 62%)
CMYKcmyk(0%, 12.1%, 72.6%, 38.4%)
CIE-LABlab(57.58, -3.64, 50.85)
CIE-LCHlch(57.58, 50.98, 94.10°)
OKLaboklab(63.31% -0.015 0.113)
OKLCHoklch(63.31% 0.114 97.6)
XYZxyz(23.4303, 25.5207, 5.9769)
Luminance0.2552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A2B #2B3E9D
analogous
#9D512B #9D8A2B #779D2B
triadic
#9D8A2B #2B9D8A #8A2B9D
tetradic
#9D8A2B #2B9D51 #2B3E9D #9D2B77
square
#9D8A2B #2B9D51 #2B3E9D #9D2B77
split-complementary
#9D8A2B #2B779D #512B9D
monochromatic
#3D3611 #6D601E #9D8A2B #CAB23C #D7C56C

Accessibility & contrast

On white

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

On black

6.10
#9D8A2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A2B
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A2B#FFFFFF#000000##000000
##9D8A2B1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871C
Deuteranopia (green-blind)
#9D8D31
Tritanopia (blue-blind)
#AA7F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a2b;
/* rgb */ color: rgb(157, 138, 43);
/* oklch */ color: oklch(63.3% 0.114 97.6);
Tailwind
colors: {
  custom: {
    50: '#bdab6b',
    500: '#9d8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a2b;
$custom-light: #bdab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a2b",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 50,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63309,
    "c": 0.11398,
    "h": 97.6
  },
  "luminance": 0.25519
}

Semantic roles & 50–950 ramp

primary
#9D8A2B
secondary
#6675BD
accent
#61E048
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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