#7FA42A#7FA42A

#7FA42A is a light, vivid yellow-green. Relative luminance 0.312; OKLCH L 66.8% C 0.151 H 125.3°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7FA42A
RGBrgb(127, 164, 42)
HSLhsl(78, 59%, 40%)
HSVhsv(78, 74%, 64%)
CMYKcmyk(22.6%, 0%, 74.4%, 35.7%)
CIE-LABlab(62.70, -30.17, 55.44)
CIE-LCHlch(62.70, 63.12, 118.56°)
OKLaboklab(66.82% -0.0873 0.1234)
OKLCHoklch(66.82% 0.151 125.3)
XYZxyz(22.4459, 31.2298, 7.0355)
Luminance0.3123 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA42A #4F2AA4
analogous
#A48C2A #7FA42A #42A42A
triadic
#7FA42A #2A7FA4 #A42A7F
tetradic
#7FA42A #2AA48C #4F2AA4 #A42A42
square
#7FA42A #2AA48C #4F2AA4 #A42A42
split-complementary
#7FA42A #2A42A4 #8C2AA4
monochromatic
#344311 #59731E #7FA42A #A2CD3E #B9DA6E

Accessibility & contrast

On white

2.90
#7FA42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#7FA42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA42A
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA42A#FFFFFF#000000##000000
##7FA42A1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9911
Deuteranopia (green-blind)
#A89735
Tritanopia (blue-blind)
#859C8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa42a;
/* rgb */ color: rgb(127, 164, 42);
/* oklch */ color: oklch(66.8% 0.151 125.3);
Tailwind
colors: {
  custom: {
    50: '#a8bf6d',
    500: '#7fa42a',
    950: '#000000',
  },
}
SCSS
$custom: #7fa42a;
$custom-light: #a8bf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa42a",
  "rgb": {
    "r": 127,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 78.197,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.66821,
    "c": 0.15119,
    "h": 125.3
  },
  "luminance": 0.3123
}

Semantic roles & 50–950 ramp

primary
#7FA42A
secondary
#8469C1
accent
#45E275
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA42A

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

Preview Lab → · Contrast checker → · Palette generator →

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