#9A7D22#9A7D22

#9A7D22 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.111 H 90.2°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9A7D22
RGBrgb(154, 125, 34)
HSLhsl(46, 64%, 37%)
HSVhsv(46, 78%, 60%)
CMYKcmyk(0%, 18.8%, 77.9%, 39.6%)
CIE-LABlab(53.66, 1.78, 50.50)
CIE-LCHlch(53.66, 50.53, 87.98°)
OKLaboklab(60.12% -0.0004 0.1105)
OKLCHoklch(60.12% 0.111 90.2)
XYZxyz(20.9500, 21.6541, 4.5893)
Luminance0.2165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7D22 #223F9A
analogous
#9A4122 #9A7D22 #7B9A22
triadic
#9A7D22 #229A7D #7D229A
tetradic
#9A7D22 #229A41 #223F9A #9A227B
square
#9A7D22 #229A41 #223F9A #9A227B
split-complementary
#9A7D22 #227B9A #41229A
monochromatic
#362C0C #685417 #9A7D22 #CCA62D #DBBC5B

Accessibility & contrast

On white

3.94
#9A7D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#9A7D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7D22
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7D22#FFFFFF#000000##000000
##9A7D221.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C11
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#A7726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9a7d22;
/* rgb */ color: rgb(154, 125, 34);
/* oklch */ color: oklch(60.1% 0.111 90.2);
Tailwind
colors: {
  custom: {
    50: '#bca264',
    500: '#9a7d22',
    950: '#000000',
  },
}
SCSS
$custom: #9a7d22;
$custom-light: #bca264;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7d22",
  "rgb": {
    "r": 154,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 45.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60121,
    "c": 0.11053,
    "h": 90.2
  },
  "luminance": 0.21653
}

Semantic roles & 50–950 ramp

primary
#9A7D22
secondary
#5871BF
accent
#69E741
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #9A7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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