#9A8221#9A8221

#9A8221 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.2% C 0.114 H 94.3°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9A8221
RGBrgb(154, 130, 33)
HSLhsl(48, 65%, 37%)
HSVhsv(48, 79%, 60%)
CMYKcmyk(0%, 15.6%, 78.6%, 39.6%)
CIE-LABlab(55.02, -1.06, 52.13)
CIE-LCHlch(55.02, 52.14, 91.16°)
OKLaboklab(61.19% -0.0086 0.1138)
OKLCHoklch(61.19% 0.114 94.3)
XYZxyz(21.5848, 22.9463, 4.7307)
Luminance0.2294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8221 #21399A
analogous
#9A4621 #9A8221 #769A21
triadic
#9A8221 #219A82 #82219A
tetradic
#9A8221 #219A46 #21399A #9A2176
square
#9A8221 #219A46 #21399A #9A2176
split-complementary
#9A8221 #21769A #46219A
monochromatic
#352D0B #685716 #9A8221 #CCAD2C #DCC25A

Accessibility & contrast

On white

3.76
#9A8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#9A8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8221
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8221#FFFFFF#000000##000000
##9A82211.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F0D
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#A7776F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9a8221;
/* rgb */ color: rgb(154, 130, 33);
/* oklch */ color: oklch(61.2% 0.114 94.3);
Tailwind
colors: {
  custom: {
    50: '#bca565',
    500: '#9a8221',
    950: '#000000',
  },
}
SCSS
$custom: #9a8221;
$custom-light: #bca565;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8221",
  "rgb": {
    "r": 154,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 48.099,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61192,
    "c": 0.11414,
    "h": 94.3
  },
  "luminance": 0.22945
}

Semantic roles & 50–950 ramp

primary
#9A8221
secondary
#576CC0
accent
#61E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8221

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

Preview Lab → · Contrast checker → · Palette generator →

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