#9D8B2A#9D8B2A

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

Color values

HEX#9D8B2A
RGBrgb(157, 139, 42)
HSLhsl(51, 58%, 39%)
HSVhsv(51, 73%, 62%)
CMYKcmyk(0%, 11.5%, 73.2%, 38.4%)
CIE-LABlab(57.85, -4.24, 51.52)
CIE-LCHlch(57.85, 51.69, 94.71°)
OKLaboklab(63.52% -0.0169 0.1142)
OKLCHoklch(63.52% 0.115 98.4)
XYZxyz(23.5563, 25.8017, 5.9295)
Luminance0.2580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B2A #2A3C9D
analogous
#9D522A #9D8B2A #769D2A
triadic
#9D8B2A #2A9D8B #8B2A9D
tetradic
#9D8B2A #2A9D52 #2A3C9D #9D2A76
square
#9D8B2A #2A9D52 #2A3C9D #9D2A76
split-complementary
#9D8B2A #2A769D #522A9D
monochromatic
#3C3610 #6D601D #9D8B2A #CAB43A #D7C66A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8B2A#FFFFFF#000000##000000
##9D8B2A1.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)
#99871A
Deuteranopia (green-blind)
#9E8E30
Tritanopia (blue-blind)
#AA8078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b2a;
/* rgb */ color: rgb(157, 139, 42);
/* oklch */ color: oklch(63.5% 0.115 98.4);
Tailwind
colors: {
  custom: {
    50: '#bdac6a',
    500: '#9d8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b2a;
$custom-light: #bdac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b2a",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 50.609,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.6352,
    "c": 0.11544,
    "h": 98.4
  },
  "luminance": 0.25801
}

Semantic roles & 50–950 ramp

primary
#9D8B2A
secondary
#6573BE
accent
#5FE147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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