#7FB240#7FB240

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

Color values

HEX#7FB240
RGBrgb(127, 178, 64)
HSLhsl(87, 47%, 47%)
HSVhsv(87, 64%, 70%)
CMYKcmyk(28.7%, 0%, 64%, 30.2%)
CIE-LABlab(67.07, -35.16, 51.25)
CIE-LCHlch(67.07, 62.15, 124.45°)
OKLaboklab(70.42% -0.0991 0.1178)
OKLCHoklch(70.42% 0.154 130.1)
XYZxyz(25.5980, 36.7223, 10.5889)
Luminance0.3672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FB240 #7340B2
analogous
#B2AC40 #7FB240 #46B240
triadic
#7FB240 #407FB2 #B2407F
tetradic
#7FB240 #40B2AC #7340B2 #B24046
square
#7FB240 #40B2AC #7340B2 #B24046
split-complementary
#7FB240 #4046B2 #AC40B2
monochromatic
#3F5820 #5F8530 #7FB240 #9DC867 #BAD894

Accessibility & contrast

On white

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

On black

8.34
#7FB240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FB240
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FB240#FFFFFF#000000##000000
##7FB2401.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA632
Deuteranopia (green-blind)
#B3A249
Tritanopia (blue-blind)
#82AB9A
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #7fb240;
/* rgb */ color: rgb(127, 178, 64);
/* oklch */ color: oklch(70.4% 0.154 130.1);
Tailwind
colors: {
  custom: {
    50: '#a7c97a',
    500: '#7fb240',
    950: '#000000',
  },
}
SCSS
$custom: #7fb240;
$custom-light: #a7c97a;
$custom-dark: #000000;
JSON
{
  "hex": "#7fb240",
  "rgb": {
    "r": 127,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 86.842,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.70415,
    "c": 0.15396,
    "h": 130.1
  },
  "luminance": 0.36723
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7FB240

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

Preview Lab → · Contrast checker → · Palette generator →

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