#7FB42C#7FB42C

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

Color values

HEX#7FB42C
RGBrgb(127, 180, 44)
HSLhsl(83, 61%, 44%)
HSVhsv(83, 76%, 71%)
CMYKcmyk(29.4%, 0%, 75.6%, 29.4%)
CIE-LABlab(67.53, -37.44, 59.40)
CIE-LCHlch(67.53, 70.22, 122.22°)
OKLaboklab(70.74% -0.107 0.1321)
OKLCHoklch(70.74% 0.17 129)
XYZxyz(25.5282, 37.3357, 8.2439)
Luminance0.3734 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FB42C #612CB4
analogous
#B4A52C #7FB42C #3BB42C
triadic
#7FB42C #2C7FB4 #B42C7F
tetradic
#7FB42C #2CB4A5 #612CB4 #B42C3B
square
#7FB42C #2CB4A5 #612CB4 #B42C3B
split-complementary
#7FB42C #2C3BB4 #A52CB4
monochromatic
#3A5214 #5C8320 #7FB42C #9ED34A #B8DF7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FB42C#FFFFFF#000000##000000
##7FB42C1.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)
#BDA70C
Deuteranopia (green-blind)
#B6A339
Tritanopia (blue-blind)
#83AC9A
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #7fb42c;
/* rgb */ color: rgb(127, 180, 44);
/* oklch */ color: oklch(70.7% 0.170 129.0);
Tailwind
colors: {
  custom: {
    50: '#a8ca6f',
    500: '#7fb42c',
    950: '#000000',
  },
}
SCSS
$custom: #7fb42c;
$custom-light: #a8ca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7fb42c",
  "rgb": {
    "r": 127,
    "g": 180,
    "b": 44
  },
  "hsl": {
    "h": 83.382,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70743,
    "c": 0.16995,
    "h": 129
  },
  "luminance": 0.37336
}

Semantic roles & 50–950 ramp

primary
#7FB42C
secondary
#9575C7
accent
#44E482
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7FB42C

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

Preview Lab → · Contrast checker → · Palette generator →

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