#9D8722#9D8722

#9D8722 is a light, moderate yellow. Relative luminance 0.246; OKLCH L 62.6% C 0.117 H 96.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9D8722
RGBrgb(157, 135, 34)
HSLhsl(49, 64%, 37%)
HSVhsv(49, 78%, 62%)
CMYKcmyk(0%, 14%, 78.3%, 38.4%)
CIE-LABlab(56.70, -2.41, 53.43)
CIE-LCHlch(56.70, 53.49, 92.58°)
OKLaboklab(62.59% -0.0125 0.1167)
OKLCHoklch(62.59% 0.117 96.1)
XYZxyz(22.8586, 24.6128, 5.0598)
Luminance0.2461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8722 #22389D
analogous
#9D4922 #9D8722 #769D22
triadic
#9D8722 #229D87 #87229D
tetradic
#9D8722 #229D49 #22389D #9D2276
square
#9D8722 #229D49 #22389D #9D2276
split-complementary
#9D8722 #22769D #49229D
monochromatic
#38300C #6B5C17 #9D8722 #CFB22D #DCC55D

Accessibility & contrast

On white

3.55
#9D8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#9D8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8722
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8722#FFFFFF#000000##000000
##9D87221.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840D
Deuteranopia (green-blind)
#9B8B29
Tritanopia (blue-blind)
#AA7C74
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9d8722;
/* rgb */ color: rgb(157, 135, 34);
/* oklch */ color: oklch(62.6% 0.117 96.1);
Tailwind
colors: {
  custom: {
    50: '#bea966',
    500: '#9d8722',
    950: '#000000',
  },
}
SCSS
$custom: #9d8722;
$custom-light: #bea966;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8722",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 49.268,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62592,
    "c": 0.11733,
    "h": 96.1
  },
  "luminance": 0.24612
}

Semantic roles & 50–950 ramp

primary
#9D8722
secondary
#5A6DC1
accent
#5EE740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8722

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

Preview Lab → · Contrast checker → · Palette generator →

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