#9D8221#9D8221

#9D8221 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.5% C 0.115 H 92.4°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#9D8221
RGBrgb(157, 130, 33)
HSLhsl(47, 65%, 37%)
HSVhsv(47, 79%, 62%)
CMYKcmyk(0%, 17.2%, 79%, 38.4%)
CIE-LABlab(55.32, 0.32, 52.53)
CIE-LCHlch(55.32, 52.53, 89.65°)
OKLaboklab(61.51% -0.0048 0.1145)
OKLCHoklch(61.51% 0.115 92.4)
XYZxyz(22.1630, 23.2445, 4.7578)
Luminance0.2324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8221 #213C9D
analogous
#9D4421 #9D8221 #7A9D21
triadic
#9D8221 #219D82 #82219D
tetradic
#9D8221 #219D44 #213C9D #9D217A
square
#9D8221 #219D44 #213C9D #9D217A
split-complementary
#9D8221 #217A9D #44219D
monochromatic
#382E0C #6A5816 #9D8221 #D0AC2C #DDC15C

Accessibility & contrast

On white

3.72
#9D8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#9D8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8221
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8221#FFFFFF#000000##000000
##9D82211.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#AA7770
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9d8221;
/* rgb */ color: rgb(157, 130, 33);
/* oklch */ color: oklch(61.5% 0.115 92.4);
Tailwind
colors: {
  custom: {
    50: '#bea565',
    500: '#9d8221',
    950: '#000000',
  },
}
SCSS
$custom: #9d8221;
$custom-light: #bea565;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8221",
  "rgb": {
    "r": 157,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 46.935,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61505,
    "c": 0.1146,
    "h": 92.4
  },
  "luminance": 0.23243
}

Semantic roles & 50–950 ramp

primary
#9D8221
secondary
#596FC1
accent
#64E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8221

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

Preview Lab → · Contrast checker → · Palette generator →

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