#7FB42F#7FB42F

#7FB42F is a light, vivid yellow-green. Relative luminance 0.374; OKLCH L 70.8% C 0.168 H 129.2°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7FB42F
RGBrgb(127, 180, 47)
HSLhsl(84, 59%, 45%)
HSVhsv(84, 74%, 71%)
CMYKcmyk(29.4%, 0%, 73.9%, 29.4%)
CIE-LABlab(67.55, -37.26, 58.39)
CIE-LCHlch(67.55, 69.27, 122.54°)
OKLaboklab(70.76% -0.1063 0.1304)
OKLCHoklch(70.76% 0.168 129.2)
XYZxyz(25.5867, 37.3591, 8.5517)
Luminance0.3736 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FB42F #642FB4
analogous
#B4A72F #7FB42F #3DB42F
triadic
#7FB42F #2F7FB4 #B42F7F
tetradic
#7FB42F #2FB4A7 #642FB4 #B42F3D
square
#7FB42F #2FB4A7 #642FB4 #B42F3D
split-complementary
#7FB42F #2F3DB4 #A72FB4
monochromatic
#3B5316 #5D8322 #7FB42F #9DD14F #B8DE80

Accessibility & contrast

On white

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

On black

8.47
#7FB42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FB42F
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FB42F#FFFFFF#000000##000000
##7FB42F1.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7fb42f;
/* rgb */ color: rgb(127, 180, 47);
/* oklch */ color: oklch(70.8% 0.168 129.2);
Tailwind
colors: {
  custom: {
    50: '#a8ca71',
    500: '#7fb42f',
    950: '#000000',
  },
}
SCSS
$custom: #7fb42f;
$custom-light: #a8ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#7fb42f",
  "rgb": {
    "r": 127,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 83.91,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70763,
    "c": 0.16824,
    "h": 129.2
  },
  "luminance": 0.3736
}

Semantic roles & 50–950 ramp

primary
#7FB42F
secondary
#9778C7
accent
#46E284
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7FB42F

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

Preview Lab → · Contrast checker → · Palette generator →

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