#9A8222#9A8222

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

Color values

HEX#9A8222
RGBrgb(154, 130, 34)
HSLhsl(48, 64%, 37%)
HSVhsv(48, 78%, 60%)
CMYKcmyk(0%, 15.6%, 77.9%, 39.6%)
CIE-LABlab(55.02, -1.01, 51.77)
CIE-LCHlch(55.02, 51.78, 91.12°)
OKLaboklab(61.2% -0.0084 0.1133)
OKLCHoklch(61.2% 0.114 94.2)
XYZxyz(21.5990, 22.9520, 4.8056)
Luminance0.2295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8222 #223A9A
analogous
#9A4622 #9A8222 #769A22
triadic
#9A8222 #229A82 #82229A
tetradic
#9A8222 #229A46 #223A9A #9A2276
square
#9A8222 #229A46 #223A9A #9A2276
split-complementary
#9A8222 #22769A #46229A
monochromatic
#362D0C #685817 #9A8222 #CCAC2D #DBC15B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8222#FFFFFF#000000##000000
##9A82221.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)
#90800F
Deuteranopia (green-blind)
#968728
Tritanopia (blue-blind)
#A77770
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9a8222;
/* rgb */ color: rgb(154, 130, 34);
/* oklch */ color: oklch(61.2% 0.114 94.2);
Tailwind
colors: {
  custom: {
    50: '#bca565',
    500: '#9a8222',
    950: '#000000',
  },
}
SCSS
$custom: #9a8222;
$custom-light: #bca565;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8222",
  "rgb": {
    "r": 154,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 48,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61198,
    "c": 0.11356,
    "h": 94.2
  },
  "luminance": 0.22951
}

Semantic roles & 50–950 ramp

primary
#9A8222
secondary
#586DBF
accent
#62E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9A8222

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

Preview Lab → · Contrast checker → · Palette generator →

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