#7FB242#7FB242

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

Color values

HEX#7FB242
RGBrgb(127, 178, 66)
HSLhsl(87, 46%, 48%)
HSVhsv(87, 63%, 70%)
CMYKcmyk(28.7%, 0%, 62.9%, 30.2%)
CIE-LABlab(67.09, -34.99, 50.40)
CIE-LCHlch(67.09, 61.36, 124.77°)
OKLaboklab(70.43% -0.0985 0.1162)
OKLCHoklch(70.43% 0.152 130.3)
XYZxyz(25.6560, 36.7454, 10.8940)
Luminance0.3675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FB242 #7542B2
analogous
#B2AD42 #7FB242 #47B242
triadic
#7FB242 #427FB2 #B2427F
tetradic
#7FB242 #42B2AD #7542B2 #B24247
square
#7FB242 #42B2AD #7542B2 #B24247
split-complementary
#7FB242 #4247B2 #AD42B2
monochromatic
#3F5921 #5F8531 #7FB242 #9DC86A #BAD896

Accessibility & contrast

On white

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

On black

8.35
#7FB242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FB242
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FB242#FFFFFF#000000##000000
##7FB2421.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7fb242;
/* rgb */ color: rgb(127, 178, 66);
/* oklch */ color: oklch(70.4% 0.152 130.3);
Tailwind
colors: {
  custom: {
    50: '#a7c97b',
    500: '#7fb242',
    950: '#000000',
  },
}
SCSS
$custom: #7fb242;
$custom-light: #a7c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#7fb242",
  "rgb": {
    "r": 127,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 87.321,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70434,
    "c": 0.15236,
    "h": 130.3
  },
  "luminance": 0.36746
}

Semantic roles & 50–950 ramp

primary
#7FB242
secondary
#A58CC4
accent
#52D68E
background
#FAFCF7
surface
#F4F8EE
border
#CED1C9
text
#10130A
muted
#7F827C

Preview Lab

Preview with #7FB242

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

Preview Lab → · Contrast checker → · Palette generator →

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