#7F9221#7F9221

#7F9221 is a light, vivid yellow-green. Relative luminance 0.252; OKLCH L 62.4% C 0.134 H 119.0°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7F9221
RGBrgb(127, 146, 33)
HSLhsl(70, 63%, 35%)
HSVhsv(70, 77%, 57%)
CMYKcmyk(13%, 0%, 77.4%, 42.7%)
CIE-LABlab(57.25, -21.82, 53.35)
CIE-LCHlch(57.25, 57.64, 112.24°)
OKLaboklab(62.4% -0.0652 0.1175)
OKLCHoklch(62.4% 0.134 119)
XYZxyz(19.3062, 25.1797, 5.2817)
Luminance0.2518 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9221 #342192
analogous
#926C21 #7F9221 #479221
triadic
#7F9221 #217F92 #92217F
tetradic
#7F9221 #21926C #342192 #922147
square
#7F9221 #21926C #342192 #922147
split-complementary
#7F9221 #214792 #6C2192
monochromatic
#282E0A #546016 #7F9221 #AAC42C #C2D955

Accessibility & contrast

On white

3.48
#7F9221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#7F9221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9221
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9221#FFFFFF#000000##000000
##7F92211.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8904
Deuteranopia (green-blind)
#9A8A2B
Tritanopia (blue-blind)
#878A7D
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #7f9221;
/* rgb */ color: rgb(127, 146, 33);
/* oklch */ color: oklch(62.4% 0.134 119.0);
Tailwind
colors: {
  custom: {
    50: '#a7b166',
    500: '#7f9221',
    950: '#000000',
  },
}
SCSS
$custom: #7f9221;
$custom-light: #a7b166;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9221",
  "rgb": {
    "r": 127,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 70.088,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.62402,
    "c": 0.13435,
    "h": 119
  },
  "luminance": 0.2518
}

Semantic roles & 50–950 ramp

primary
#7F9221
secondary
#6453BC
accent
#42E65D
background
#FAFAF6
surface
#F4F5EB
border
#CECFC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F9221

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

Preview Lab → · Contrast checker → · Palette generator →

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