#9D7F22#9D7F22

#9D7F22 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.9% C 0.112 H 89.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9D7F22
RGBrgb(157, 127, 34)
HSLhsl(45, 64%, 37%)
HSVhsv(45, 78%, 62%)
CMYKcmyk(0%, 19.1%, 78.3%, 38.4%)
CIE-LABlab(54.52, 2.04, 51.41)
CIE-LCHlch(54.52, 51.45, 87.73°)
OKLaboklab(60.87% 0.0002 0.1123)
OKLCHoklch(60.87% 0.112 89.9)
XYZxyz(21.7840, 22.4637, 4.7016)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7F22 #22409D
analogous
#9D4222 #9D7F22 #7D9D22
triadic
#9D7F22 #229D7F #7F229D
tetradic
#9D7F22 #229D42 #22409D #9D227D
square
#9D7F22 #229D42 #22409D #9D227D
split-complementary
#9D7F22 #227D9D #42229D
monochromatic
#382E0C #6B5617 #9D7F22 #CFA82D #DCBD5D

Accessibility & contrast

On white

3.82
#9D7F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#9D7F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7F22
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7F22#FFFFFF#000000##000000
##9D7F221.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E10
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#AA746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9d7f22;
/* rgb */ color: rgb(157, 127, 34);
/* oklch */ color: oklch(60.9% 0.112 89.9);
Tailwind
colors: {
  custom: {
    50: '#bea365',
    500: '#9d7f22',
    950: '#000000',
  },
}
SCSS
$custom: #9d7f22;
$custom-light: #bea365;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7f22",
  "rgb": {
    "r": 157,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 45.366,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.60869,
    "c": 0.11234,
    "h": 89.9
  },
  "luminance": 0.22462
}

Semantic roles & 50–950 ramp

primary
#9D7F22
secondary
#5A73C1
accent
#69E740
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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