#9D8937#9D8937

#9D8937 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.2% C 0.104 H 95.5°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9D8937
RGBrgb(157, 137, 55)
HSLhsl(48, 48%, 42%)
HSVhsv(48, 65%, 62%)
CMYKcmyk(0%, 12.7%, 65%, 38.4%)
CIE-LABlab(57.40, -2.39, 45.44)
CIE-LCHlch(57.40, 45.50, 93.01°)
OKLaboklab(63.2% -0.01 0.1036)
OKLCHoklch(63.2% 0.104 95.5)
XYZxyz(23.5409, 25.3364, 7.2641)
Luminance0.2534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8937 #374B9D
analogous
#9D5637 #9D8937 #7E9D37
triadic
#9D8937 #379D89 #89379D
tetradic
#9D8937 #379D56 #374B9D #9D377E
square
#9D8937 #379D56 #374B9D #9D377E
split-complementary
#9D8937 #377E9D #56379D
monochromatic
#423A17 #706127 #9D8937 #C2AB50 #D1C17D

Accessibility & contrast

On white

3.46
#9D8937 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9D8937 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8937
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8937#FFFFFF#000000##000000
##9D89371.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#96862E
Deuteranopia (green-blind)
#9C8D3B
Tritanopia (blue-blind)
#A97F78
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8937;
/* rgb */ color: rgb(157, 137, 55);
/* oklch */ color: oklch(63.2% 0.104 95.5);
Tailwind
colors: {
  custom: {
    50: '#bdab72',
    500: '#9d8937',
    950: '#000000',
  },
}
SCSS
$custom: #9d8937;
$custom-light: #bdab72;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8937",
  "rgb": {
    "r": 157,
    "g": 137,
    "b": 55
  },
  "hsl": {
    "h": 48.235,
    "s": 48.113,
    "l": 41.569
  },
  "oklch": {
    "l": 0.632,
    "c": 0.10409,
    "h": 95.5
  },
  "luminance": 0.25335
}

Semantic roles & 50–950 ramp

primary
#9D8937
secondary
#7583BB
accent
#6BD850
background
#FCFAF7
surface
#F8F4ED
border
#D1CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9D8937

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

Preview Lab → · Contrast checker → · Palette generator →

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