#9A8E22#9A8E22

#9A8E22 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.123 H 102.7°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9A8E22
RGBrgb(154, 142, 34)
HSLhsl(54, 64%, 37%)
HSVhsv(54, 78%, 60%)
CMYKcmyk(0%, 7.8%, 77.9%, 39.6%)
CIE-LABlab(58.35, -7.60, 54.85)
CIE-LCHlch(58.35, 55.38, 97.89°)
OKLaboklab(63.84% -0.027 0.1198)
OKLCHoklch(63.84% 0.123 102.7)
XYZxyz(23.2892, 26.3325, 5.3690)
Luminance0.2633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8E22 #222E9A
analogous
#9A5222 #9A8E22 #6A9A22
triadic
#9A8E22 #229A8E #8E229A
tetradic
#9A8E22 #229A52 #222E9A #9A226A
square
#9A8E22 #229A52 #222E9A #9A226A
split-complementary
#9A8E22 #226A9A #52229A
monochromatic
#36320C #686017 #9A8E22 #CCBC2D #DBCE5B

Accessibility & contrast

On white

3.35
#9A8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9A8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8E22
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8E22#FFFFFF#000000##000000
##9A8E221.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8908
Deuteranopia (green-blind)
#9F8F2A
Tritanopia (blue-blind)
#A6837A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9a8e22;
/* rgb */ color: rgb(154, 142, 34);
/* oklch */ color: oklch(63.8% 0.123 102.7);
Tailwind
colors: {
  custom: {
    50: '#bbae66',
    500: '#9a8e22',
    950: '#000000',
  },
}
SCSS
$custom: #9a8e22;
$custom-light: #bbae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8e22",
  "rgb": {
    "r": 154,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 54,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63837,
    "c": 0.12283,
    "h": 102.7
  },
  "luminance": 0.26332
}

Semantic roles & 50–950 ramp

primary
#9A8E22
secondary
#5863BF
accent
#52E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9A8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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