#7B9221#7B9221

#7B9221 is a light, vivid yellow-green. Relative luminance 0.249; OKLCH L 62.1% C 0.136 H 120.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7B9221
RGBrgb(123, 146, 33)
HSLhsl(72, 63%, 35%)
HSVhsv(72, 77%, 57%)
CMYKcmyk(15.8%, 0%, 77.4%, 42.7%)
CIE-LABlab(56.96, -23.55, 52.97)
CIE-LCHlch(56.96, 57.97, 113.97°)
OKLaboklab(62.09% -0.0697 0.1168)
OKLCHoklch(62.09% 0.136 120.8)
XYZxyz(18.7221, 24.8786, 5.2543)
Luminance0.2488 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9221 #382192
analogous
#927021 #7B9221 #439221
triadic
#7B9221 #217B92 #92217B
tetradic
#7B9221 #219270 #382192 #922143
square
#7B9221 #219270 #382192 #922143
split-complementary
#7B9221 #214392 #702192
monochromatic
#272E0A #516016 #7B9221 #A5C42C #BED955

Accessibility & contrast

On white

3.51
#7B9221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#7B9221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B9221
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B9221#FFFFFF#000000##000000
##7B92211.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8905
Deuteranopia (green-blind)
#99892C
Tritanopia (blue-blind)
#828A7D
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #7b9221;
/* rgb */ color: rgb(123, 146, 33);
/* oklch */ color: oklch(62.1% 0.136 120.8);
Tailwind
colors: {
  custom: {
    50: '#a4b266',
    500: '#7b9221',
    950: '#000000',
  },
}
SCSS
$custom: #7b9221;
$custom-light: #a4b266;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9221",
  "rgb": {
    "r": 123,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 72.212,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.62091,
    "c": 0.13603,
    "h": 120.8
  },
  "luminance": 0.24879
}

Semantic roles & 50–950 ramp

primary
#7B9221
secondary
#6853BC
accent
#42E663
background
#FAFAF6
surface
#F4F5EB
border
#CECFC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B9221

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

Preview Lab → · Contrast checker → · Palette generator →

#7B9221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva