#9A8822#9A8822

#9A8822 is a light, moderate yellow. Relative luminance 0.246; OKLCH L 62.5% C 0.118 H 98.7°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9A8822
RGBrgb(154, 136, 34)
HSLhsl(51, 64%, 37%)
HSVhsv(51, 78%, 60%)
CMYKcmyk(0%, 11.7%, 77.9%, 39.6%)
CIE-LABlab(56.68, -4.33, 53.31)
CIE-LCHlch(56.68, 53.49, 94.64°)
OKLaboklab(62.51% -0.0178 0.1165)
OKLCHoklch(62.51% 0.118 98.7)
XYZxyz(22.4205, 24.5950, 5.0794)
Luminance0.2459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8822 #22349A
analogous
#9A4C22 #9A8822 #709A22
triadic
#9A8822 #229A88 #88229A
tetradic
#9A8822 #229A4C #22349A #9A2270
square
#9A8822 #229A4C #22349A #9A2270
split-complementary
#9A8822 #22709A #4C229A
monochromatic
#362F0C #685C17 #9A8822 #CCB42D #DBC85B

Accessibility & contrast

On white

3.55
#9A8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#9A8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8822
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8822#FFFFFF#000000##000000
##9A88221.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840C
Deuteranopia (green-blind)
#9B8B29
Tritanopia (blue-blind)
#A77D75
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9a8822;
/* rgb */ color: rgb(154, 136, 34);
/* oklch */ color: oklch(62.5% 0.118 98.7);
Tailwind
colors: {
  custom: {
    50: '#bcaa66',
    500: '#9a8822',
    950: '#000000',
  },
}
SCSS
$custom: #9a8822;
$custom-light: #bcaa66;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8822",
  "rgb": {
    "r": 154,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 51,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62509,
    "c": 0.11789,
    "h": 98.7
  },
  "luminance": 0.24594
}

Semantic roles & 50–950 ramp

primary
#9A8822
secondary
#5868BF
accent
#5AE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9A8822

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

Preview Lab → · Contrast checker → · Palette generator →

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