#7EB240#7EB240

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

Color values

HEX#7EB240
RGBrgb(126, 178, 64)
HSLhsl(87, 47%, 47%)
HSVhsv(87, 64%, 70%)
CMYKcmyk(29.2%, 0%, 64%, 30.2%)
CIE-LABlab(67.01, -35.53, 51.17)
CIE-LCHlch(67.01, 62.30, 124.78°)
OKLaboklab(70.35% -0.1001 0.1176)
OKLCHoklch(70.35% 0.154 130.4)
XYZxyz(25.4498, 36.6458, 10.5820)
Luminance0.3665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EB240 #7440B2
analogous
#B2AD40 #7EB240 #45B240
triadic
#7EB240 #407EB2 #B2407E
tetradic
#7EB240 #40B2AD #7440B2 #B24045
square
#7EB240 #40B2AD #7440B2 #B24045
split-complementary
#7EB240 #4045B2 #AD40B2
monochromatic
#3E5820 #5E8530 #7EB240 #9CC867 #B9D894

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7EB240#FFFFFF#000000##000000
##7EB2401.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)
#BAA632
Deuteranopia (green-blind)
#B3A249
Tritanopia (blue-blind)
#81AB9A
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #7eb240;
/* rgb */ color: rgb(126, 178, 64);
/* oklch */ color: oklch(70.4% 0.154 130.4);
Tailwind
colors: {
  custom: {
    50: '#a7c97a',
    500: '#7eb240',
    950: '#000000',
  },
}
SCSS
$custom: #7eb240;
$custom-light: #a7c97a;
$custom-dark: #000000;
JSON
{
  "hex": "#7eb240",
  "rgb": {
    "r": 126,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 87.368,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.70353,
    "c": 0.15446,
    "h": 130.4
  },
  "luminance": 0.36647
}

Semantic roles & 50–950 ramp

primary
#7EB240
secondary
#A48AC4
accent
#51D78E
background
#FAFCF7
surface
#F4F8EE
border
#CED1C9
text
#101309
muted
#7F827B

Preview Lab

Preview with #7EB240

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

Preview Lab → · Contrast checker → · Palette generator →

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