#9A7F22#9A7F22

#9A7F22 is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.112 H 91.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9A7F22
RGBrgb(154, 127, 34)
HSLhsl(47, 64%, 37%)
HSVhsv(47, 78%, 60%)
CMYKcmyk(0%, 17.5%, 77.9%, 39.6%)
CIE-LABlab(54.20, 0.66, 51.01)
CIE-LCHlch(54.20, 51.01, 89.26°)
OKLaboklab(60.55% -0.0036 0.1116)
OKLCHoklch(60.55% 0.112 91.9)
XYZxyz(21.2057, 22.1656, 4.6745)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7F22 #223D9A
analogous
#9A4322 #9A7F22 #799A22
triadic
#9A7F22 #229A7F #7F229A
tetradic
#9A7F22 #229A43 #223D9A #9A2279
square
#9A7F22 #229A43 #223D9A #9A2279
split-complementary
#9A7F22 #22799A #43229A
monochromatic
#362C0C #685617 #9A7F22 #CCA82D #DBBE5B

Accessibility & contrast

On white

3.87
#9A7F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#9A7F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7F22
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7F22#FFFFFF#000000##000000
##9A7F221.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D10
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#A7746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9a7f22;
/* rgb */ color: rgb(154, 127, 34);
/* oklch */ color: oklch(60.6% 0.112 91.9);
Tailwind
colors: {
  custom: {
    50: '#bca365',
    500: '#9a7f22',
    950: '#000000',
  },
}
SCSS
$custom: #9a7f22;
$custom-light: #bca365;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7f22",
  "rgb": {
    "r": 154,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 46.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.6055,
    "c": 0.11168,
    "h": 91.9
  },
  "luminance": 0.22164
}

Semantic roles & 50–950 ramp

primary
#9A7F22
secondary
#5870BF
accent
#66E741
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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