#7EB42D#7EB42D

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

Color values

HEX#7EB42D
RGBrgb(126, 180, 45)
HSLhsl(84, 60%, 44%)
HSVhsv(84, 75%, 71%)
CMYKcmyk(30%, 0%, 75%, 29.4%)
CIE-LABlab(67.48, -37.76, 59.00)
CIE-LCHlch(67.48, 70.05, 122.62°)
OKLaboklab(70.69% -0.1077 0.1314)
OKLCHoklch(70.69% 0.17 129.4)
XYZxyz(25.3990, 37.2669, 8.3371)
Luminance0.3727 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EB42D #632DB4
analogous
#B4A72D #7EB42D #3BB42D
triadic
#7EB42D #2D7EB4 #B42D7E
tetradic
#7EB42D #2DB4A7 #632DB4 #B42D3B
square
#7EB42D #2DB4A7 #632DB4 #B42D3B
split-complementary
#7EB42D #2D3BB4 #A72DB4
monochromatic
#395215 #5C8321 #7EB42D #9DD24C #B7DE7D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7EB42D#FFFFFF#000000##000000
##7EB42D1.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)
#BDA70F
Deuteranopia (green-blind)
#B5A33A
Tritanopia (blue-blind)
#82AC9A
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #7eb42d;
/* rgb */ color: rgb(126, 180, 45);
/* oklch */ color: oklch(70.7% 0.170 129.4);
Tailwind
colors: {
  custom: {
    50: '#a8ca70',
    500: '#7eb42d',
    950: '#000000',
  },
}
SCSS
$custom: #7eb42d;
$custom-light: #a8ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#7eb42d",
  "rgb": {
    "r": 126,
    "g": 180,
    "b": 45
  },
  "hsl": {
    "h": 84,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70688,
    "c": 0.1699,
    "h": 129.4
  },
  "luminance": 0.37268
}

Semantic roles & 50–950 ramp

primary
#7EB42D
secondary
#9676C7
accent
#45E384
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7EB42D

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

Preview Lab → · Contrast checker → · Palette generator →

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