#9A8A3A#9A8A3A

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

Color values

HEX#9A8A3A
RGBrgb(154, 138, 58)
HSLhsl(50, 45%, 42%)
HSVhsv(50, 62%, 60%)
CMYKcmyk(0%, 10.4%, 62.3%, 39.6%)
CIE-LABlab(57.42, -4.07, 43.97)
CIE-LCHlch(57.42, 44.15, 95.29°)
OKLaboklab(63.15% -0.0143 0.101)
OKLCHoklch(63.15% 0.102 98)
XYZxyz(23.1796, 25.3535, 7.6749)
Luminance0.2535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A3A #3A4A9A
analogous
#9A5A3A #9A8A3A #7A9A3A
triadic
#9A8A3A #3A9A8A #8A3A9A
tetradic
#9A8A3A #3A9A5A #3A4A9A #9A3A7A
square
#9A8A3A #3A9A5A #3A4A9A #9A3A7A
split-complementary
#9A8A3A #3A7A9A #5A3A9A
monochromatic
#413A19 #6E6229 #9A8A3A #BEAC53 #CFC27F

Accessibility & contrast

On white

3.46
#9A8A3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9A8A3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8A3A
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8A3A#FFFFFF#000000##000000
##9A8A3A1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978731
Deuteranopia (green-blind)
#9B8C3E
Tritanopia (blue-blind)
#A58079
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9a8a3a;
/* rgb */ color: rgb(154, 138, 58);
/* oklch */ color: oklch(63.2% 0.102 98.0);
Tailwind
colors: {
  custom: {
    50: '#baab73',
    500: '#9a8a3a',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a3a;
$custom-light: #baab73;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a3a",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 58
  },
  "hsl": {
    "h": 50,
    "s": 45.283,
    "l": 41.569
  },
  "oklch": {
    "l": 0.63154,
    "c": 0.102,
    "h": 98
  },
  "luminance": 0.25352
}

Semantic roles & 50–950 ramp

primary
#9A8A3A
secondary
#7782B9
accent
#69D553
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9A8A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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