#9A8A2F#9A8A2F

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

Color values

HEX#9A8A2F
RGBrgb(154, 138, 47)
HSLhsl(51, 53%, 39%)
HSVhsv(51, 69%, 60%)
CMYKcmyk(0%, 10.4%, 69.5%, 39.6%)
CIE-LABlab(57.32, -4.78, 48.83)
CIE-LCHlch(57.32, 49.07, 95.59°)
OKLaboklab(63.05% -0.0176 0.1096)
OKLCHoklch(63.05% 0.111 99.2)
XYZxyz(22.9290, 25.2533, 6.3554)
Luminance0.2525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A2F #2F3F9A
analogous
#9A552F #9A8A2F #759A2F
triadic
#9A8A2F #2F9A8A #8A2F9A
tetradic
#9A8A2F #2F9A55 #2F3F9A #9A2F75
square
#9A8A2F #2F9A55 #2F3F9A #9A2F75
split-complementary
#9A8A2F #2F759A #552F9A
monochromatic
#3C3612 #6B6021 #9A8A2F #C5B141 #D3C570

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8A2F#FFFFFF#000000##000000
##9A8A2F1.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)
#978623
Deuteranopia (green-blind)
#9C8C34
Tritanopia (blue-blind)
#A68077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9a8a2f;
/* rgb */ color: rgb(154, 138, 47);
/* oklch */ color: oklch(63.0% 0.111 99.2);
Tailwind
colors: {
  custom: {
    50: '#bbab6d',
    500: '#9a8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a2f;
$custom-light: #bbab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a2f",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 51.028,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.63046,
    "c": 0.11097,
    "h": 99.2
  },
  "luminance": 0.25252
}

Semantic roles & 50–950 ramp

primary
#9A8A2F
secondary
#6A76BB
accent
#61DD4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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