#9A8722#9A8722

#9A8722 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.3% C 0.117 H 98.0°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9A8722
RGBrgb(154, 135, 34)
HSLhsl(51, 64%, 37%)
HSVhsv(51, 78%, 60%)
CMYKcmyk(0%, 12.3%, 77.9%, 39.6%)
CIE-LABlab(56.40, -3.78, 53.05)
CIE-LCHlch(56.40, 53.19, 94.08°)
OKLaboklab(62.29% -0.0162 0.116)
OKLCHoklch(62.29% 0.117 98)
XYZxyz(22.2803, 24.3146, 5.0327)
Luminance0.2431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8722 #22359A
analogous
#9A4B22 #9A8722 #719A22
triadic
#9A8722 #229A87 #87229A
tetradic
#9A8722 #229A4B #22359A #9A2271
square
#9A8722 #229A4B #22359A #9A2271
split-complementary
#9A8722 #22719A #4B229A
monochromatic
#362F0C #685B17 #9A8722 #CCB32D #DBC75B

Accessibility & contrast

On white

3.58
#9A8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#9A8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8722
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8722#FFFFFF#000000##000000
##9A87221.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840D
Deuteranopia (green-blind)
#9A8A29
Tritanopia (blue-blind)
#A77C74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9a8722;
/* rgb */ color: rgb(154, 135, 34);
/* oklch */ color: oklch(62.3% 0.117 98.0);
Tailwind
colors: {
  custom: {
    50: '#bca966',
    500: '#9a8722',
    950: '#000000',
  },
}
SCSS
$custom: #9a8722;
$custom-light: #bca966;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8722",
  "rgb": {
    "r": 154,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 50.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62289,
    "c": 0.11712,
    "h": 98
  },
  "luminance": 0.24313
}

Semantic roles & 50–950 ramp

primary
#9A8722
secondary
#5869BF
accent
#5BE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8722

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

Preview Lab → · Contrast checker → · Palette generator →

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