#9D8D38#9D8D38

#9D8D38 is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.107 H 98.6°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9D8D38
RGBrgb(157, 141, 56)
HSLhsl(50, 47%, 42%)
HSVhsv(50, 64%, 62%)
CMYKcmyk(0%, 10.2%, 64.3%, 38.4%)
CIE-LABlab(58.51, -4.51, 46.18)
CIE-LCHlch(58.51, 46.40, 95.58°)
OKLaboklab(64.08% -0.016 0.1053)
OKLCHoklch(64.08% 0.107 98.6)
XYZxyz(24.1443, 26.5045, 7.5847)
Luminance0.2650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D38 #38489D
analogous
#9D5B38 #9D8D38 #7B9D38
triadic
#9D8D38 #389D8D #8D389D
tetradic
#9D8D38 #389D5B #38489D #9D387B
square
#9D8D38 #389D5B #38489D #9D387B
split-complementary
#9D8D38 #387B9D #5B389D
monochromatic
#433C18 #706428 #9D8D38 #C1AF51 #D1C47E

Accessibility & contrast

On white

3.33
#9D8D38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9D8D38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D38
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D38#FFFFFF#000000##000000
##9D8D381.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A892E
Deuteranopia (green-blind)
#9E8F3C
Tritanopia (blue-blind)
#A9837B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8d38;
/* rgb */ color: rgb(157, 141, 56);
/* oklch */ color: oklch(64.1% 0.107 98.6);
Tailwind
colors: {
  custom: {
    50: '#bdae72',
    500: '#9d8d38',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d38;
$custom-light: #bdae72;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d38",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 56
  },
  "hsl": {
    "h": 50.495,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.64083,
    "c": 0.10654,
    "h": 98.6
  },
  "luminance": 0.26503
}

Semantic roles & 50–950 ramp

primary
#9D8D38
secondary
#7681BA
accent
#66D751
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9D8D38

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

Preview Lab → · Contrast checker → · Palette generator →

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