#9D8A2A#9D8A2A

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

Color values

HEX#9D8A2A
RGBrgb(157, 138, 42)
HSLhsl(50, 58%, 39%)
HSVhsv(50, 73%, 62%)
CMYKcmyk(0%, 12.1%, 73.2%, 38.4%)
CIE-LABlab(57.57, -3.69, 51.25)
CIE-LCHlch(57.57, 51.38, 94.12°)
OKLaboklab(63.3% -0.0153 0.1136)
OKLCHoklch(63.3% 0.115 97.7)
XYZxyz(23.4122, 25.5134, 5.8814)
Luminance0.2551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A2A #2A3D9D
analogous
#9D512A #9D8A2A #779D2A
triadic
#9D8A2A #2A9D8A #8A2A9D
tetradic
#9D8A2A #2A9D51 #2A3D9D #9D2A77
square
#9D8A2A #2A9D51 #2A3D9D #9D2A77
split-complementary
#9D8A2A #2A779D #512A9D
monochromatic
#3C3510 #6D601D #9D8A2A #CAB23A #D7C56A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A2A#FFFFFF#000000##000000
##9D8A2A1.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)
#98871B
Deuteranopia (green-blind)
#9D8D30
Tritanopia (blue-blind)
#AA7F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a2a;
/* rgb */ color: rgb(157, 138, 42);
/* oklch */ color: oklch(63.3% 0.115 97.7);
Tailwind
colors: {
  custom: {
    50: '#bdab6a',
    500: '#9d8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a2a;
$custom-light: #bdab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a2a",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 50.087,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.63301,
    "c": 0.11465,
    "h": 97.7
  },
  "luminance": 0.25512
}

Semantic roles & 50–950 ramp

primary
#9D8A2A
secondary
#6574BE
accent
#60E147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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