#7EB42C#7EB42C

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

Color values

HEX#7EB42C
RGBrgb(126, 180, 44)
HSLhsl(84, 61%, 44%)
HSVhsv(84, 76%, 71%)
CMYKcmyk(30%, 0%, 75.6%, 29.4%)
CIE-LABlab(67.47, -37.82, 59.33)
CIE-LCHlch(67.47, 70.36, 122.51°)
OKLaboklab(70.68% -0.108 0.1319)
OKLCHoklch(70.68% 0.17 129.3)
XYZxyz(25.3800, 37.2593, 8.2369)
Luminance0.3726 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EB42C #622CB4
analogous
#B4A62C #7EB42C #3AB42C
triadic
#7EB42C #2C7EB4 #B42C7E
tetradic
#7EB42C #2CB4A6 #622CB4 #B42C3A
square
#7EB42C #2CB4A6 #622CB4 #B42C3A
split-complementary
#7EB42C #2C3AB4 #A62CB4
monochromatic
#395214 #5C8320 #7EB42C #9DD34A #B7DF7C

Accessibility & contrast

On white

2.48
#7EB42C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7EB42C#FFFFFF#000000##000000
##7EB42C1.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7eb42c;
/* rgb */ color: rgb(126, 180, 44);
/* oklch */ color: oklch(70.7% 0.170 129.3);
Tailwind
colors: {
  custom: {
    50: '#a8ca6f',
    500: '#7eb42c',
    950: '#000000',
  },
}
SCSS
$custom: #7eb42c;
$custom-light: #a8ca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7eb42c",
  "rgb": {
    "r": 126,
    "g": 180,
    "b": 44
  },
  "hsl": {
    "h": 83.824,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70682,
    "c": 0.17046,
    "h": 129.3
  },
  "luminance": 0.3726
}

Semantic roles & 50–950 ramp

primary
#7EB42C
secondary
#9575C7
accent
#44E483
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7EB42C

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

Preview Lab → · Contrast checker → · Palette generator →

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