#9D8121#9D8121

#9D8121 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 61.3% C 0.114 H 91.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#9D8121
RGBrgb(157, 129, 33)
HSLhsl(46, 65%, 37%)
HSVhsv(46, 79%, 62%)
CMYKcmyk(0%, 17.8%, 79%, 38.4%)
CIE-LABlab(55.05, 0.88, 52.28)
CIE-LCHlch(55.05, 52.28, 89.03°)
OKLaboklab(61.29% -0.0033 0.114)
OKLCHoklch(61.29% 0.114 91.6)
XYZxyz(22.0307, 22.9798, 4.7137)
Luminance0.2298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8121 #213D9D
analogous
#9D4321 #9D8121 #7B9D21
triadic
#9D8121 #219D81 #81219D
tetradic
#9D8121 #219D43 #213D9D #9D217B
square
#9D8121 #219D43 #213D9D #9D217B
split-complementary
#9D8121 #217B9D #43219D
monochromatic
#382E0C #6A5716 #9D8121 #D0AB2C #DDC05C

Accessibility & contrast

On white

3.75
#9D8121 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#9D8121 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8121
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8121#FFFFFF#000000##000000
##9D81211.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#AA766F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9d8121;
/* rgb */ color: rgb(157, 129, 33);
/* oklch */ color: oklch(61.3% 0.114 91.6);
Tailwind
colors: {
  custom: {
    50: '#bea564',
    500: '#9d8121',
    950: '#000000',
  },
}
SCSS
$custom: #9d8121;
$custom-light: #bea564;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8121",
  "rgb": {
    "r": 157,
    "g": 129,
    "b": 33
  },
  "hsl": {
    "h": 46.452,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.6129,
    "c": 0.11402,
    "h": 91.6
  },
  "luminance": 0.22978
}

Semantic roles & 50–950 ramp

primary
#9D8121
secondary
#5970C1
accent
#66E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8121

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

Preview Lab → · Contrast checker → · Palette generator →

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