#7EB42B#7EB42B

#7EB42B is a light, vivid yellow-green. Relative luminance 0.373; OKLCH L 70.7% C 0.171 H 129.2°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7EB42B
RGBrgb(126, 180, 43)
HSLhsl(84, 61%, 44%)
HSVhsv(84, 76%, 71%)
CMYKcmyk(30%, 0%, 76.1%, 29.4%)
CIE-LABlab(67.47, -37.87, 59.66)
CIE-LCHlch(67.47, 70.66, 122.41°)
OKLaboklab(70.68% -0.1082 0.1325)
OKLCHoklch(70.68% 0.171 129.2)
XYZxyz(25.3614, 37.2518, 8.1391)
Luminance0.3725 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EB42B #612BB4
analogous
#B4A52B #7EB42B #39B42B
triadic
#7EB42B #2B7EB4 #B42B7E
tetradic
#7EB42B #2BB4A5 #612BB4 #B42B39
square
#7EB42B #2BB4A5 #612BB4 #B42B39
split-complementary
#7EB42B #2B39B4 #A52BB4
monochromatic
#395113 #5B831F #7EB42B #9DD349 #B7DF7A

Accessibility & contrast

On white

2.49
#7EB42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#7EB42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EB42B
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EB42B#FFFFFF#000000##000000
##7EB42B1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA709
Deuteranopia (green-blind)
#B5A339
Tritanopia (blue-blind)
#82AC9A
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #7eb42b;
/* rgb */ color: rgb(126, 180, 43);
/* oklch */ color: oklch(70.7% 0.171 129.2);
Tailwind
colors: {
  custom: {
    50: '#a8ca6f',
    500: '#7eb42b',
    950: '#000000',
  },
}
SCSS
$custom: #7eb42b;
$custom-light: #a8ca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7eb42b",
  "rgb": {
    "r": 126,
    "g": 180,
    "b": 43
  },
  "hsl": {
    "h": 83.65,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70675,
    "c": 0.17101,
    "h": 129.2
  },
  "luminance": 0.37253
}

Semantic roles & 50–950 ramp

primary
#7EB42B
secondary
#9573C7
accent
#43E583
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7EB42B

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

Preview Lab → · Contrast checker → · Palette generator →

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