#9A8A2A#9A8A2A

#9A8A2A is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.115 H 99.5°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9A8A2A
RGBrgb(154, 138, 42)
HSLhsl(51, 57%, 38%)
HSVhsv(51, 73%, 60%)
CMYKcmyk(0%, 10.4%, 72.7%, 39.6%)
CIE-LABlab(57.28, -5.06, 50.87)
CIE-LCHlch(57.28, 51.12, 95.68°)
OKLaboklab(63.01% -0.019 0.1129)
OKLCHoklch(63.01% 0.115 99.5)
XYZxyz(22.8339, 25.2152, 5.8543)
Luminance0.2521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A2A #2A3A9A
analogous
#9A522A #9A8A2A #729A2A
triadic
#9A8A2A #2A9A8A #8A2A9A
tetradic
#9A8A2A #2A9A52 #2A3A9A #9A2A72
square
#9A8A2A #2A9A52 #2A3A9A #9A2A72
split-complementary
#9A8A2A #2A729A #522A9A
monochromatic
#3A3410 #6A5F1D #9A8A2A #C9B438 #D6C668

Accessibility & contrast

On white

3.48
#9A8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#9A8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8A2A
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8A2A#FFFFFF#000000##000000
##9A8A2A1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#98861B
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#A68077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9a8a2a;
/* rgb */ color: rgb(154, 138, 42);
/* oklch */ color: oklch(63.0% 0.115 99.5);
Tailwind
colors: {
  custom: {
    50: '#bbab6a',
    500: '#9a8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a2a;
$custom-light: #bbab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a2a",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 51.429,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63005,
    "c": 0.11453,
    "h": 99.5
  },
  "luminance": 0.25214
}

Semantic roles & 50–950 ramp

primary
#9A8A2A
secondary
#6370BC
accent
#5DE047
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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