#7FA22A#7FA22A

#7FA22A is a light, vivid yellow-green. Relative luminance 0.305; OKLCH L 66.3% C 0.149 H 124.7°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7FA22A
RGBrgb(127, 162, 42)
HSLhsl(78, 59%, 40%)
HSVhsv(78, 74%, 64%)
CMYKcmyk(21.6%, 0%, 74.1%, 36.5%)
CIE-LABlab(62.10, -29.22, 54.85)
CIE-LCHlch(62.10, 62.15, 118.05°)
OKLaboklab(66.33% -0.0848 0.1222)
OKLCHoklch(66.33% 0.149 124.7)
XYZxyz(22.0908, 30.5196, 6.9171)
Luminance0.3052 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA22A #4D2AA2
analogous
#A2892A #7FA22A #43A22A
triadic
#7FA22A #2A7FA2 #A22A7F
tetradic
#7FA22A #2AA289 #4D2AA2 #A22A43
square
#7FA22A #2AA289 #4D2AA2 #A22A43
split-complementary
#7FA22A #2A43A2 #892AA2
monochromatic
#334111 #59711D #7FA22A #A3CD3D #BAD96D

Accessibility & contrast

On white

2.96
#7FA22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#7FA22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA22A
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA22A#FFFFFF#000000##000000
##7FA22A1.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9712
Deuteranopia (green-blind)
#A69635
Tritanopia (blue-blind)
#859A8B
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #7fa22a;
/* rgb */ color: rgb(127, 162, 42);
/* oklch */ color: oklch(66.3% 0.149 124.7);
Tailwind
colors: {
  custom: {
    50: '#a8bd6c',
    500: '#7fa22a',
    950: '#000000',
  },
}
SCSS
$custom: #7fa22a;
$custom-light: #a8bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa22a",
  "rgb": {
    "r": 127,
    "g": 162,
    "b": 42
  },
  "hsl": {
    "h": 77.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.66334,
    "c": 0.1487,
    "h": 124.7
  },
  "luminance": 0.3052
}

Semantic roles & 50–950 ramp

primary
#7FA22A
secondary
#8268C0
accent
#46E273
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA22A

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

Preview Lab → · Contrast checker → · Palette generator →

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