#7EB242#7EB242

#7EB242 is a light, vivid yellow-green. Relative luminance 0.367; OKLCH L 70.4% C 0.153 H 130.6°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#7EB242
RGBrgb(126, 178, 66)
HSLhsl(88, 46%, 48%)
HSVhsv(88, 63%, 70%)
CMYKcmyk(29.2%, 0%, 62.9%, 30.2%)
CIE-LABlab(67.03, -35.37, 50.32)
CIE-LCHlch(67.03, 61.51, 125.10°)
OKLaboklab(70.37% -0.0995 0.1161)
OKLCHoklch(70.37% 0.153 130.6)
XYZxyz(25.5077, 36.6690, 10.8871)
Luminance0.3667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EB242 #7642B2
analogous
#B2AE42 #7EB242 #46B242
triadic
#7EB242 #427EB2 #B2427E
tetradic
#7EB242 #42B2AE #7642B2 #B24246
square
#7EB242 #42B2AE #7642B2 #B24246
split-complementary
#7EB242 #4246B2 #AE42B2
monochromatic
#3F5921 #5E8531 #7EB242 #9CC86A #BAD896

Accessibility & contrast

On white

2.52
#7EB242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#7EB242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EB242
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EB242#FFFFFF#000000##000000
##7EB2421.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA635
Deuteranopia (green-blind)
#B2A24B
Tritanopia (blue-blind)
#81AB9A
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #7eb242;
/* rgb */ color: rgb(126, 178, 66);
/* oklch */ color: oklch(70.4% 0.153 130.6);
Tailwind
colors: {
  custom: {
    50: '#a7c97b',
    500: '#7eb242',
    950: '#000000',
  },
}
SCSS
$custom: #7eb242;
$custom-light: #a7c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#7eb242",
  "rgb": {
    "r": 126,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 87.857,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70372,
    "c": 0.15288,
    "h": 130.6
  },
  "luminance": 0.3667
}

Semantic roles & 50–950 ramp

primary
#7EB242
secondary
#A68CC4
accent
#52D68F
background
#FAFCF7
surface
#F4F8EE
border
#CED1C9
text
#10130A
muted
#7F827C

Preview Lab

Preview with #7EB242

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

Preview Lab → · Contrast checker → · Palette generator →

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