#7FA040#7FA040

#7FA040 is a light, vivid yellow-green. Relative luminance 0.300; OKLCH L 66.0% C 0.130 H 125.7°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#7FA040
RGBrgb(127, 160, 64)
HSLhsl(81, 43%, 44%)
HSVhsv(81, 60%, 63%)
CMYKcmyk(20.6%, 0%, 60%, 37.3%)
CIE-LABlab(61.67, -26.66, 45.30)
CIE-LCHlch(61.67, 52.56, 120.47°)
OKLaboklab(66.05% -0.0757 0.1052)
OKLCHoklch(66.05% 0.13 125.7)
XYZxyz(22.2487, 30.0235, 9.4725)
Luminance0.3002 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA040 #6140A0
analogous
#A09140 #7FA040 #4FA040
triadic
#7FA040 #407FA0 #A0407F
tetradic
#7FA040 #40A091 #6140A0 #A0404F
square
#7FA040 #40A091 #6140A0 #A0404F
split-complementary
#7FA040 #404FA0 #9140A0
monochromatic
#3A491D #5C742F #7FA040 #9EBF5E #B8D08A

Accessibility & contrast

On white

3.00
#7FA040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#7FA040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA040
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA040#FFFFFF#000000##000000
##7FA0401.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89635
Deuteranopia (green-blind)
#A49447
Tritanopia (blue-blind)
#84998B
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #7fa040;
/* rgb */ color: rgb(127, 160, 64);
/* oklch */ color: oklch(66.0% 0.130 125.7);
Tailwind
colors: {
  custom: {
    50: '#a6bc79',
    500: '#7fa040',
    950: '#000000',
  },
}
SCSS
$custom: #7fa040;
$custom-light: #a6bc79;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa040",
  "rgb": {
    "r": 127,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 80.625,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.66046,
    "c": 0.12955,
    "h": 125.7
  },
  "luminance": 0.30024
}

Semantic roles & 50–950 ramp

primary
#7FA040
secondary
#9581BB
accent
#55D380
background
#FAFBF7
surface
#F4F6ED
border
#CED0C8
text
#101209
muted
#7F817B

Preview Lab

Preview with #7FA040

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

Preview Lab → · Contrast checker → · Palette generator →

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