#7FA22B#7FA22B

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

Color values

HEX#7FA22B
RGBrgb(127, 162, 43)
HSLhsl(78, 58%, 40%)
HSVhsv(78, 73%, 64%)
CMYKcmyk(21.6%, 0%, 73.5%, 36.5%)
CIE-LABlab(62.11, -29.16, 54.50)
CIE-LCHlch(62.11, 61.81, 118.15°)
OKLaboklab(66.34% -0.0845 0.1216)
OKLCHoklch(66.34% 0.148 124.8)
XYZxyz(22.1090, 30.5269, 7.0125)
Luminance0.3053 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA22B #4E2BA2
analogous
#A2892B #7FA22B #43A22B
triadic
#7FA22B #2B7FA2 #A22B7F
tetradic
#7FA22B #2BA289 #4E2BA2 #A22B43
square
#7FA22B #2BA289 #4E2BA2 #A22B43
split-complementary
#7FA22B #2B43A2 #892BA2
monochromatic
#334111 #59721E #7FA22B #A2CC3E #BAD96F

Accessibility & contrast

On white

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

On black

7.11
#7FA22B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA22B
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA22B#FFFFFF#000000##000000
##7FA22B1.002.967.117.11
#FFFFFF2.961.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7fa22b;
/* rgb */ color: rgb(127, 162, 43);
/* oklch */ color: oklch(66.3% 0.148 124.8);
Tailwind
colors: {
  custom: {
    50: '#a8bd6d',
    500: '#7fa22b',
    950: '#000000',
  },
}
SCSS
$custom: #7fa22b;
$custom-light: #a8bd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa22b",
  "rgb": {
    "r": 127,
    "g": 162,
    "b": 43
  },
  "hsl": {
    "h": 77.647,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.66341,
    "c": 0.14808,
    "h": 124.8
  },
  "luminance": 0.30527
}

Semantic roles & 50–950 ramp

primary
#7FA22B
secondary
#8369C0
accent
#47E174
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA22B

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

Preview Lab → · Contrast checker → · Palette generator →

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