#7E9221#7E9221

#7E9221 is a light, vivid yellow-green. Relative luminance 0.251; OKLCH L 62.3% C 0.135 H 119.5°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7E9221
RGBrgb(126, 146, 33)
HSLhsl(71, 63%, 35%)
HSVhsv(71, 77%, 57%)
CMYKcmyk(13.7%, 0%, 77.4%, 42.7%)
CIE-LABlab(57.18, -22.25, 53.26)
CIE-LCHlch(57.18, 57.72, 112.68°)
OKLaboklab(62.32% -0.0663 0.1173)
OKLCHoklch(62.32% 0.135 119.5)
XYZxyz(19.1580, 25.1033, 5.2747)
Luminance0.2510 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9221 #352192
analogous
#926D21 #7E9221 #469221
triadic
#7E9221 #217E92 #92217E
tetradic
#7E9221 #21926D #352192 #922146
square
#7E9221 #21926D #352192 #922146
split-complementary
#7E9221 #214692 #6D2192
monochromatic
#282E0A #536016 #7E9221 #A9C42C #C1D955

Accessibility & contrast

On white

3.49
#7E9221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#7E9221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9221
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9221#FFFFFF#000000##000000
##7E92211.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8904
Deuteranopia (green-blind)
#998A2B
Tritanopia (blue-blind)
#868A7D
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #7e9221;
/* rgb */ color: rgb(126, 146, 33);
/* oklch */ color: oklch(62.3% 0.135 119.5);
Tailwind
colors: {
  custom: {
    50: '#a7b266',
    500: '#7e9221',
    950: '#000000',
  },
}
SCSS
$custom: #7e9221;
$custom-light: #a7b266;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9221",
  "rgb": {
    "r": 126,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 70.619,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.62323,
    "c": 0.13476,
    "h": 119.5
  },
  "luminance": 0.25103
}

Semantic roles & 50–950 ramp

primary
#7E9221
secondary
#6553BC
accent
#42E65F
background
#FAFAF6
surface
#F4F5EB
border
#CECFC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E9221

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

Preview Lab → · Contrast checker → · Palette generator →

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