#9A8A2B#9A8A2B

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

Color values

HEX#9A8A2B
RGBrgb(154, 138, 43)
HSLhsl(51, 56%, 39%)
HSVhsv(51, 72%, 60%)
CMYKcmyk(0%, 10.4%, 72.1%, 39.6%)
CIE-LABlab(57.29, -5.00, 50.47)
CIE-LCHlch(57.29, 50.72, 95.66°)
OKLaboklab(63.01% -0.0187 0.1123)
OKLCHoklch(63.01% 0.114 99.5)
XYZxyz(22.8520, 25.2225, 5.9498)
Luminance0.2522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A2B #2B3B9A
analogous
#9A522B #9A8A2B #729A2B
triadic
#9A8A2B #2B9A8A #8A2B9A
tetradic
#9A8A2B #2B9A52 #2B3B9A #9A2B72
square
#9A8A2B #2B9A52 #2B3B9A #9A2B72
split-complementary
#9A8A2B #2B729A #522B9A
monochromatic
#3A3410 #6A5F1E #9A8A2B #C8B43A #D5C66A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8A2B#FFFFFF#000000##000000
##9A8A2B1.003.476.046.04
#FFFFFF3.471.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#98861C
Deuteranopia (green-blind)
#9C8C31
Tritanopia (blue-blind)
#A68077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9a8a2b;
/* rgb */ color: rgb(154, 138, 43);
/* oklch */ color: oklch(63.0% 0.114 99.5);
Tailwind
colors: {
  custom: {
    50: '#bbab6b',
    500: '#9a8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a2b;
$custom-light: #bbab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a2b",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 51.351,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63013,
    "c": 0.11384,
    "h": 99.5
  },
  "luminance": 0.25221
}

Semantic roles & 50–950 ramp

primary
#9A8A2B
secondary
#6571BC
accent
#5EE048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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