#7EA42A#7EA42A

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

Color values

HEX#7EA42A
RGBrgb(126, 164, 42)
HSLhsl(79, 59%, 40%)
HSVhsv(79, 74%, 64%)
CMYKcmyk(23.2%, 0%, 74.4%, 35.7%)
CIE-LABlab(62.64, -30.58, 55.35)
CIE-LCHlch(62.64, 63.24, 118.92°)
OKLaboklab(66.75% -0.0884 0.1233)
OKLCHoklch(66.75% 0.152 125.6)
XYZxyz(22.2977, 31.1534, 7.0285)
Luminance0.3115 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EA42A #502AA4
analogous
#A48D2A #7EA42A #41A42A
triadic
#7EA42A #2A7EA4 #A42A7E
tetradic
#7EA42A #2AA48D #502AA4 #A42A41
square
#7EA42A #2AA48D #502AA4 #A42A41
split-complementary
#7EA42A #2A41A4 #8D2AA4
monochromatic
#334311 #59731E #7EA42A #A1CD3E #B8DA6E

Accessibility & contrast

On white

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

On black

7.23
#7EA42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EA42A
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EA42A#FFFFFF#000000##000000
##7EA42A1.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7ea42a;
/* rgb */ color: rgb(126, 164, 42);
/* oklch */ color: oklch(66.8% 0.152 125.6);
Tailwind
colors: {
  custom: {
    50: '#a7bf6d',
    500: '#7ea42a',
    950: '#000000',
  },
}
SCSS
$custom: #7ea42a;
$custom-light: #a7bf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7ea42a",
  "rgb": {
    "r": 126,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 78.689,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.66752,
    "c": 0.15167,
    "h": 125.6
  },
  "luminance": 0.31154
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7EA42A

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

Preview Lab → · Contrast checker → · Palette generator →

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