#9A8A40#9A8A40

#9A8A40 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.096 H 97.3°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9A8A40
RGBrgb(154, 138, 64)
HSLhsl(49, 41%, 43%)
HSVhsv(49, 58%, 60%)
CMYKcmyk(0%, 10.4%, 58.4%, 39.6%)
CIE-LABlab(57.48, -3.62, 41.13)
CIE-LCHlch(57.48, 41.28, 95.02°)
OKLaboklab(63.22% -0.0122 0.0957)
OKLCHoklch(63.22% 0.096 97.3)
XYZxyz(23.3412, 25.4182, 8.5262)
Luminance0.2542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A40 #40509A
analogous
#9A5D40 #9A8A40 #7D9A40
triadic
#9A8A40 #409A8A #8A409A
tetradic
#9A8A40 #409A5D #40509A #9A407D
square
#9A8A40 #409A5D #40509A #9A407D
split-complementary
#9A8A40 #407D9A #5D409A
monochromatic
#443D1C #6F632E #9A8A40 #BBAA5C #CDC187

Accessibility & contrast

On white

3.45
#9A8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9A8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8A40
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8A40#FFFFFF#000000##000000
##9A8A401.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968739
Deuteranopia (green-blind)
#9B8C43
Tritanopia (blue-blind)
#A58179
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9a8a40;
/* rgb */ color: rgb(154, 138, 64);
/* oklch */ color: oklch(63.2% 0.096 97.3);
Tailwind
colors: {
  custom: {
    50: '#baab77',
    500: '#9a8a40',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a40;
$custom-light: #baab77;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a40",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 49.333,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.63224,
    "c": 0.09649,
    "h": 97.3
  },
  "luminance": 0.25417
}

Semantic roles & 50–950 ramp

primary
#9A8A40
secondary
#7E88B8
accent
#6CD157
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9A8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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