#9D8A2C#9D8A2C

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

Color values

HEX#9D8A2C
RGBrgb(157, 138, 44)
HSLhsl(50, 56%, 39%)
HSVhsv(50, 72%, 62%)
CMYKcmyk(0%, 12.1%, 72%, 38.4%)
CIE-LABlab(57.59, -3.59, 50.45)
CIE-LCHlch(57.59, 50.58, 94.07°)
OKLaboklab(63.32% -0.0148 0.1123)
OKLCHoklch(63.32% 0.113 97.5)
XYZxyz(23.4489, 25.5281, 6.0747)
Luminance0.2553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A2C #2C3F9D
analogous
#9D522C #9D8A2C #779D2C
triadic
#9D8A2C #2C9D8A #8A2C9D
tetradic
#9D8A2C #2C9D52 #2C3F9D #9D2C77
square
#9D8A2C #2C9D52 #2C3F9D #9D2C77
split-complementary
#9D8A2C #2C779D #522C9D
monochromatic
#3D3611 #6D601F #9D8A2C #C9B13D #D6C56D

Accessibility & contrast

On white

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

On black

6.11
#9D8A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A2C
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A2C#FFFFFF#000000##000000
##9D8A2C1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871E
Deuteranopia (green-blind)
#9D8D32
Tritanopia (blue-blind)
#A97F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a2c;
/* rgb */ color: rgb(157, 138, 44);
/* oklch */ color: oklch(63.3% 0.113 97.5);
Tailwind
colors: {
  custom: {
    50: '#bdab6b',
    500: '#9d8a2c',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a2c;
$custom-light: #bdab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a2c",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 49.912,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.63317,
    "c": 0.11329,
    "h": 97.5
  },
  "luminance": 0.25527
}

Semantic roles & 50–950 ramp

primary
#9D8A2C
secondary
#6876BD
accent
#62E048
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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