#9A8721#9A8721

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

Color values

HEX#9A8721
RGBrgb(154, 135, 33)
HSLhsl(51, 65%, 37%)
HSVhsv(51, 79%, 60%)
CMYKcmyk(0%, 12.3%, 78.6%, 39.6%)
CIE-LABlab(56.40, -3.82, 53.40)
CIE-LCHlch(56.40, 53.54, 94.09°)
OKLaboklab(62.28% -0.0165 0.1165)
OKLCHoklch(62.28% 0.118 98)
XYZxyz(22.2661, 24.3089, 4.9578)
Luminance0.2431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8721 #21349A
analogous
#9A4B21 #9A8721 #719A21
triadic
#9A8721 #219A87 #87219A
tetradic
#9A8721 #219A4B #21349A #9A2171
square
#9A8721 #219A4B #21349A #9A2171
split-complementary
#9A8721 #21719A #4B219A
monochromatic
#352F0B #685B16 #9A8721 #CCB32C #DCC75A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8721#FFFFFF#000000##000000
##9A87211.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)
#95840A
Deuteranopia (green-blind)
#9A8A28
Tritanopia (blue-blind)
#A77C74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9a8721;
/* rgb */ color: rgb(154, 135, 33);
/* oklch */ color: oklch(62.3% 0.118 98.0);
Tailwind
colors: {
  custom: {
    50: '#bca965',
    500: '#9a8721',
    950: '#000000',
  },
}
SCSS
$custom: #9a8721;
$custom-light: #bca965;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8721",
  "rgb": {
    "r": 154,
    "g": 135,
    "b": 33
  },
  "hsl": {
    "h": 50.579,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62283,
    "c": 0.11768,
    "h": 98
  },
  "luminance": 0.24308
}

Semantic roles & 50–950 ramp

primary
#9A8721
secondary
#5767C0
accent
#5AE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8721

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

Preview Lab → · Contrast checker → · Palette generator →

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