#9A7E22#9A7E22

#9A7E22 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.3% C 0.111 H 91.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9A7E22
RGBrgb(154, 126, 34)
HSLhsl(46, 64%, 37%)
HSVhsv(46, 78%, 60%)
CMYKcmyk(0%, 18.2%, 77.9%, 39.6%)
CIE-LABlab(53.93, 1.22, 50.75)
CIE-LCHlch(53.93, 50.77, 88.62°)
OKLaboklab(60.34% -0.002 0.1111)
OKLCHoklch(60.34% 0.111 91)
XYZxyz(21.0772, 21.9085, 4.6317)
Luminance0.2191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7E22 #223E9A
analogous
#9A4222 #9A7E22 #7A9A22
triadic
#9A7E22 #229A7E #7E229A
tetradic
#9A7E22 #229A42 #223E9A #9A227A
square
#9A7E22 #229A42 #223E9A #9A227A
split-complementary
#9A7E22 #227A9A #42229A
monochromatic
#362C0C #685517 #9A7E22 #CCA72D #DBBD5B

Accessibility & contrast

On white

3.90
#9A7E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#9A7E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7E22
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7E22#FFFFFF#000000##000000
##9A7E221.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C11
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#A7736C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9a7e22;
/* rgb */ color: rgb(154, 126, 34);
/* oklch */ color: oklch(60.3% 0.111 91.0);
Tailwind
colors: {
  custom: {
    50: '#bca365',
    500: '#9a7e22',
    950: '#000000',
  },
}
SCSS
$custom: #9a7e22;
$custom-light: #bca365;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7e22",
  "rgb": {
    "r": 154,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 46,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60335,
    "c": 0.11109,
    "h": 91
  },
  "luminance": 0.21907
}

Semantic roles & 50–950 ramp

primary
#9A7E22
secondary
#5870BF
accent
#68E741
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #9A7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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