#7FB42B#7FB42B

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

Color values

HEX#7FB42B
RGBrgb(127, 180, 43)
HSLhsl(83, 61%, 44%)
HSVhsv(83, 76%, 71%)
CMYKcmyk(29.4%, 0%, 76.1%, 29.4%)
CIE-LABlab(67.52, -37.49, 59.73)
CIE-LCHlch(67.52, 70.52, 122.11°)
OKLaboklab(70.74% -0.1072 0.1326)
OKLCHoklch(70.74% 0.171 129)
XYZxyz(25.5097, 37.3283, 8.1461)
Luminance0.3733 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FB42B #602BB4
analogous
#B4A42B #7FB42B #3AB42B
triadic
#7FB42B #2B7FB4 #B42B7F
tetradic
#7FB42B #2BB4A4 #602BB4 #B42B3A
square
#7FB42B #2BB4A4 #602BB4 #B42B3A
split-complementary
#7FB42B #2B3AB4 #A42BB4
monochromatic
#395113 #5C831F #7FB42B #9ED349 #B8DF7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7fb42b;
/* rgb */ color: rgb(127, 180, 43);
/* oklch */ color: oklch(70.7% 0.171 129.0);
Tailwind
colors: {
  custom: {
    50: '#a8ca6f',
    500: '#7fb42b',
    950: '#000000',
  },
}
SCSS
$custom: #7fb42b;
$custom-light: #a8ca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7fb42b",
  "rgb": {
    "r": 127,
    "g": 180,
    "b": 43
  },
  "hsl": {
    "h": 83.212,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70737,
    "c": 0.1705,
    "h": 129
  },
  "luminance": 0.37329
}

Semantic roles & 50–950 ramp

primary
#7FB42B
secondary
#9473C7
accent
#43E582
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7FB42B

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

Preview Lab → · Contrast checker → · Palette generator →

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