#7EB42F#7EB42F

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

Color values

HEX#7EB42F
RGBrgb(126, 180, 47)
HSLhsl(84, 59%, 45%)
HSVhsv(84, 74%, 71%)
CMYKcmyk(30%, 0%, 73.9%, 29.4%)
CIE-LABlab(67.49, -37.64, 58.32)
CIE-LCHlch(67.49, 69.41, 122.84°)
OKLaboklab(70.7% -0.1073 0.1303)
OKLCHoklch(70.7% 0.169 129.5)
XYZxyz(25.4384, 37.2826, 8.5448)
Luminance0.3728 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EB42F #652FB4
analogous
#B4A82F #7EB42F #3CB42F
triadic
#7EB42F #2F7EB4 #B42F7E
tetradic
#7EB42F #2FB4A8 #652FB4 #B42F3C
square
#7EB42F #2FB4A8 #652FB4 #B42F3C
split-complementary
#7EB42F #2F3CB4 #A82FB4
monochromatic
#3A5316 #5C8322 #7EB42F #9CD14F #B8DE80

Accessibility & contrast

On white

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

On black

8.46
#7EB42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EB42F
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EB42F#FFFFFF#000000##000000
##7EB42F1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7eb42f;
/* rgb */ color: rgb(126, 180, 47);
/* oklch */ color: oklch(70.7% 0.169 129.5);
Tailwind
colors: {
  custom: {
    50: '#a8ca71',
    500: '#7eb42f',
    950: '#000000',
  },
}
SCSS
$custom: #7eb42f;
$custom-light: #a8ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#7eb42f",
  "rgb": {
    "r": 126,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 84.361,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70702,
    "c": 0.16874,
    "h": 129.5
  },
  "luminance": 0.37283
}

Semantic roles & 50–950 ramp

primary
#7EB42F
secondary
#9878C7
accent
#46E285
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7EB42F

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

Preview Lab → · Contrast checker → · Palette generator →

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