#7EC42A#7EC42A

#7EC42A is a light, vivid yellow-green. Relative luminance 0.441; OKLCH L 74.6% C 0.191 H 131.7°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#7EC42A
RGBrgb(126, 196, 42)
HSLhsl(87, 65%, 47%)
HSVhsv(87, 79%, 77%)
CMYKcmyk(35.7%, 0%, 78.6%, 23.1%)
CIE-LABlab(72.28, -44.85, 64.50)
CIE-LCHlch(72.28, 78.56, 124.81°)
OKLaboklab(74.6% -0.1271 0.1425)
OKLCHoklch(74.6% 0.191 131.7)
XYZxyz(28.7617, 44.0815, 9.1832)
Luminance0.4408 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EC42A #702AC4
analogous
#C4BD2A #7EC42A #31C42A
triadic
#7EC42A #2A7EC4 #C42A7E
tetradic
#7EC42A #2AC4BD #702AC4 #C42A31
square
#7EC42A #2AC4BD #702AC4 #C42A31
split-complementary
#7EC42A #2A31C4 #BD2AC4
monochromatic
#3D5F14 #5E921F #7EC42A #9CDA51 #B9E584

Accessibility & contrast

On white

2.14
#7EC42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.82
#7EC42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EC42A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EC42A#FFFFFF#000000##000000
##7EC42A1.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB500
Deuteranopia (green-blind)
#C3AF3B
Tritanopia (blue-blind)
#80BCA8
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #7ec42a;
/* rgb */ color: rgb(126, 196, 42);
/* oklch */ color: oklch(74.6% 0.191 131.7);
Tailwind
colors: {
  custom: {
    50: '#a9d671',
    500: '#7ec42a',
    950: '#000000',
  },
}
SCSS
$custom: #7ec42a;
$custom-light: #a9d671;
$custom-dark: #000000;
JSON
{
  "hex": "#7ec42a",
  "rgb": {
    "r": 126,
    "g": 196,
    "b": 42
  },
  "hsl": {
    "h": 87.273,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.74602,
    "c": 0.19094,
    "h": 131.7
  },
  "luminance": 0.44083
}

Semantic roles & 50–950 ramp

primary
#7EC42A
secondary
#A17CCE
accent
#40E88C
background
#FAFDF7
surface
#F4FAED
border
#CED3C8
text
#101408
muted
#7F837B

Preview Lab

Preview with #7EC42A

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

Preview Lab → · Contrast checker → · Palette generator →

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