#7F9721#7F9721

#7F9721 is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.6% C 0.140 H 120.9°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7F9721
RGBrgb(127, 151, 33)
HSLhsl(72, 64%, 36%)
HSVhsv(72, 78%, 59%)
CMYKcmyk(15.9%, 0%, 78.1%, 40.8%)
CIE-LABlab(58.75, -24.33, 54.74)
CIE-LCHlch(58.75, 59.91, 113.96°)
OKLaboklab(63.61% -0.0721 0.1204)
OKLCHoklch(63.61% 0.14 120.9)
XYZxyz(20.0939, 26.7551, 5.5442)
Luminance0.2676 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9721 #392197
analogous
#977421 #7F9721 #449721
triadic
#7F9721 #217F97 #97217F
tetradic
#7F9721 #219774 #392197 #972144
square
#7F9721 #219774 #392197 #972144
split-complementary
#7F9721 #214497 #742197
monochromatic
#2B330B #556516 #7F9721 #A9C92C #C0DA58

Accessibility & contrast

On white

3.31
#7F9721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#7F9721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9721
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9721#FFFFFF#000000##000000
##7F97211.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E01
Deuteranopia (green-blind)
#9E8D2C
Tritanopia (blue-blind)
#868F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7f9721;
/* rgb */ color: rgb(127, 151, 33);
/* oklch */ color: oklch(63.6% 0.140 120.9);
Tailwind
colors: {
  custom: {
    50: '#a8b567',
    500: '#7f9721',
    950: '#000000',
  },
}
SCSS
$custom: #7f9721;
$custom-light: #a8b567;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9721",
  "rgb": {
    "r": 127,
    "g": 151,
    "b": 33
  },
  "hsl": {
    "h": 72.203,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63608,
    "c": 0.14035,
    "h": 120.9
  },
  "luminance": 0.26755
}

Semantic roles & 50–950 ramp

primary
#7F9721
secondary
#6B55BE
accent
#41E763
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F9721

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

Preview Lab → · Contrast checker → · Palette generator →

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