#9D9937#9D9937

#9D9937 is a light, moderate yellow. Relative luminance 0.302; OKLCH L 66.7% C 0.119 H 107.0°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#9D9937
RGBrgb(157, 153, 55)
HSLhsl(58, 48%, 42%)
HSVhsv(58, 65%, 62%)
CMYKcmyk(0%, 2.5%, 65%, 38.4%)
CIE-LABlab(61.85, -11.04, 50.18)
CIE-LCHlch(61.85, 51.38, 102.41°)
OKLaboklab(66.73% -0.0347 0.1137)
OKLCHoklch(66.73% 0.119 107)
XYZxyz(25.9864, 30.2272, 8.0793)
Luminance0.3023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9937 #373B9D
analogous
#9D6637 #9D9937 #6E9D37
triadic
#9D9937 #379D99 #99379D
tetradic
#9D9937 #379D66 #373B9D #9D376E
square
#9D9937 #379D66 #373B9D #9D376E
split-complementary
#9D9937 #376E9D #66379D
monochromatic
#424117 #706D27 #9D9937 #C2BD50 #D1CE7D

Accessibility & contrast

On white

2.98
#9D9937 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#9D9937 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D9937
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9937#FFFFFF#000000##000000
##9D99371.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6932A
Deuteranopia (green-blind)
#A8973D
Tritanopia (blue-blind)
#A88F85
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9d9937;
/* rgb */ color: rgb(157, 153, 55);
/* oklch */ color: oklch(66.7% 0.119 107.0);
Tailwind
colors: {
  custom: {
    50: '#bdb673',
    500: '#9d9937',
    950: '#000000',
  },
}
SCSS
$custom: #9d9937;
$custom-light: #bdb673;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9937",
  "rgb": {
    "r": 157,
    "g": 153,
    "b": 55
  },
  "hsl": {
    "h": 57.647,
    "s": 48.113,
    "l": 41.569
  },
  "oklch": {
    "l": 0.66732,
    "c": 0.11882,
    "h": 107
  },
  "luminance": 0.30226
}

Semantic roles & 50–950 ramp

primary
#9D9937
secondary
#7578BB
accent
#55D850
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121108
muted
#81807B

Preview Lab

Preview with #9D9937

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

Preview Lab → · Contrast checker → · Palette generator →

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