#9D8B2C#9D8B2C

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

Color values

HEX#9D8B2C
RGBrgb(157, 139, 44)
HSLhsl(50, 56%, 39%)
HSVhsv(50, 72%, 62%)
CMYKcmyk(0%, 11.5%, 72%, 38.4%)
CIE-LABlab(57.86, -4.14, 50.73)
CIE-LCHlch(57.86, 50.89, 94.66°)
OKLaboklab(63.54% -0.0163 0.1129)
OKLCHoklch(63.54% 0.114 98.2)
XYZxyz(23.5930, 25.8163, 6.1227)
Luminance0.2581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B2C #2C3E9D
analogous
#9D522C #9D8B2C #779D2C
triadic
#9D8B2C #2C9D8B #8B2C9D
tetradic
#9D8B2C #2C9D52 #2C3E9D #9D2C77
square
#9D8B2C #2C9D52 #2C3E9D #9D2C77
split-complementary
#9D8B2C #2C779D #522C9D
monochromatic
#3D3611 #6D611F #9D8B2C #C9B33D #D6C56D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8B2C#FFFFFF#000000##000000
##9D8B2C1.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)
#99871E
Deuteranopia (green-blind)
#9E8E32
Tritanopia (blue-blind)
#A98078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b2c;
/* rgb */ color: rgb(157, 139, 44);
/* oklch */ color: oklch(63.5% 0.114 98.2);
Tailwind
colors: {
  custom: {
    50: '#bdac6b',
    500: '#9d8b2c',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b2c;
$custom-light: #bdac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b2c",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 44
  },
  "hsl": {
    "h": 50.442,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.63536,
    "c": 0.11408,
    "h": 98.2
  },
  "luminance": 0.25815
}

Semantic roles & 50–950 ramp

primary
#9D8B2C
secondary
#6875BD
accent
#60E048
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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