#9D9938#9D9938

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

Color values

HEX#9D9938
RGBrgb(157, 153, 56)
HSLhsl(58, 47%, 42%)
HSVhsv(58, 64%, 62%)
CMYKcmyk(0%, 2.5%, 64.3%, 38.4%)
CIE-LABlab(61.86, -10.98, 49.76)
CIE-LCHlch(61.86, 50.95, 102.44°)
OKLaboklab(66.74% -0.0344 0.1129)
OKLCHoklch(66.74% 0.118 106.9)
XYZxyz(26.0106, 30.2369, 8.2068)
Luminance0.3024 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9938 #383C9D
analogous
#9D6738 #9D9938 #6F9D38
triadic
#9D9938 #389D99 #99389D
tetradic
#9D9938 #389D67 #383C9D #9D386F
square
#9D9938 #389D67 #383C9D #9D386F
split-complementary
#9D9938 #386F9D #67389D
monochromatic
#434118 #706D28 #9D9938 #C1BD51 #D1CE7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D9938#FFFFFF#000000##000000
##9D99381.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)
#A5932C
Deuteranopia (green-blind)
#A7973E
Tritanopia (blue-blind)
#A88F85
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9d9938;
/* rgb */ color: rgb(157, 153, 56);
/* oklch */ color: oklch(66.7% 0.118 106.9);
Tailwind
colors: {
  custom: {
    50: '#bdb673',
    500: '#9d9938',
    950: '#000000',
  },
}
SCSS
$custom: #9d9938;
$custom-light: #bdb673;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9938",
  "rgb": {
    "r": 157,
    "g": 153,
    "b": 56
  },
  "hsl": {
    "h": 57.624,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.66741,
    "c": 0.11803,
    "h": 106.9
  },
  "luminance": 0.30236
}

Semantic roles & 50–950 ramp

primary
#9D9938
secondary
#7679BA
accent
#56D751
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121108
muted
#81807B

Preview Lab

Preview with #9D9938

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

Preview Lab → · Contrast checker → · Palette generator →

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