#9A8A2D#9A8A2D

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

Color values

HEX#9A8A2D
RGBrgb(154, 138, 45)
HSLhsl(51, 55%, 39%)
HSVhsv(51, 71%, 60%)
CMYKcmyk(0%, 10.4%, 70.8%, 39.6%)
CIE-LABlab(57.31, -4.90, 49.66)
CIE-LCHlch(57.31, 49.90, 95.63°)
OKLaboklab(63.03% -0.0182 0.111)
OKLCHoklch(63.03% 0.112 99.3)
XYZxyz(22.8896, 25.2375, 6.1478)
Luminance0.2524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A2D #2D3D9A
analogous
#9A542D #9A8A2D #749A2D
triadic
#9A8A2D #2D9A8A #8A2D9A
tetradic
#9A8A2D #2D9A54 #2D3D9A #9A2D74
square
#9A8A2D #2D9A54 #2D3D9A #9A2D74
split-complementary
#9A8A2D #2D749A #542D9A
monochromatic
#3B3511 #6B601F #9A8A2D #C7B23E #D4C56D

Accessibility & contrast

On white

3.47
#9A8A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#9A8A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8A2D
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8A2D#FFFFFF#000000##000000
##9A8A2D1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#978620
Deuteranopia (green-blind)
#9C8C33
Tritanopia (blue-blind)
#A68077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9a8a2d;
/* rgb */ color: rgb(154, 138, 45);
/* oklch */ color: oklch(63.0% 0.112 99.3);
Tailwind
colors: {
  custom: {
    50: '#bbab6c',
    500: '#9a8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a2d;
$custom-light: #bbab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a2d",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 51.193,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.63029,
    "c": 0.11243,
    "h": 99.3
  },
  "luminance": 0.25236
}

Semantic roles & 50–950 ramp

primary
#9A8A2D
secondary
#6774BB
accent
#5FDE4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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