#7F9722#7F9722

#7F9722 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#7F9722
RGBrgb(127, 151, 34)
HSLhsl(72, 63%, 36%)
HSVhsv(72, 77%, 59%)
CMYKcmyk(15.9%, 0%, 77.5%, 40.8%)
CIE-LABlab(58.75, -24.28, 54.42)
CIE-LCHlch(58.75, 59.59, 114.04°)
OKLaboklab(63.61% -0.0719 0.1199)
OKLCHoklch(63.61% 0.14 120.9)
XYZxyz(20.1081, 26.7608, 5.6191)
Luminance0.2676 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9722 #3A2297
analogous
#977522 #7F9722 #459722
triadic
#7F9722 #227F97 #97227F
tetradic
#7F9722 #229775 #3A2297 #972245
square
#7F9722 #229775 #3A2297 #972245
split-complementary
#7F9722 #224597 #752297
monochromatic
#2B330C #556517 #7F9722 #A9C92D #BFDA5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F9722#FFFFFF#000000##000000
##7F97221.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)
#A18E04
Deuteranopia (green-blind)
#9E8D2D
Tritanopia (blue-blind)
#868F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7f9722;
/* rgb */ color: rgb(127, 151, 34);
/* oklch */ color: oklch(63.6% 0.140 120.9);
Tailwind
colors: {
  custom: {
    50: '#a7b567',
    500: '#7f9722',
    950: '#000000',
  },
}
SCSS
$custom: #7f9722;
$custom-light: #a7b567;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9722",
  "rgb": {
    "r": 127,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 72.308,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63614,
    "c": 0.1398,
    "h": 120.9
  },
  "luminance": 0.26761
}

Semantic roles & 50–950 ramp

primary
#7F9722
secondary
#6C57BE
accent
#42E663
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F9722

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

Preview Lab → · Contrast checker → · Palette generator →

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