#7FA42C#7FA42C

#7FA42C is a light, vivid yellow-green. Relative luminance 0.312; OKLCH L 66.8% C 0.150 H 125.4°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7FA42C
RGBrgb(127, 164, 44)
HSLhsl(79, 58%, 41%)
HSVhsv(79, 73%, 64%)
CMYKcmyk(22.6%, 0%, 73.2%, 35.7%)
CIE-LABlab(62.71, -30.06, 54.73)
CIE-LCHlch(62.71, 62.44, 118.78°)
OKLaboklab(66.83% -0.0869 0.1222)
OKLCHoklch(66.83% 0.15 125.4)
XYZxyz(22.4826, 31.2445, 7.2287)
Luminance0.3125 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA42C #512CA4
analogous
#A48D2C #7FA42C #43A42C
triadic
#7FA42C #2C7FA4 #A42C7F
tetradic
#7FA42C #2CA48D #512CA4 #A42C43
square
#7FA42C #2CA48D #512CA4 #A42C43
split-complementary
#7FA42C #2C43A4 #8D2CA4
monochromatic
#344312 #5A741F #7FA42C #A1CC41 #B9D971

Accessibility & contrast

On white

2.90
#7FA42C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#7FA42C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA42C
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA42C#FFFFFF#000000##000000
##7FA42C1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9916
Deuteranopia (green-blind)
#A89737
Tritanopia (blue-blind)
#859C8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa42c;
/* rgb */ color: rgb(127, 164, 44);
/* oklch */ color: oklch(66.8% 0.150 125.4);
Tailwind
colors: {
  custom: {
    50: '#a8bf6e',
    500: '#7fa42c',
    950: '#000000',
  },
}
SCSS
$custom: #7fa42c;
$custom-light: #a8bf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa42c",
  "rgb": {
    "r": 127,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 78.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.66835,
    "c": 0.14996,
    "h": 125.4
  },
  "luminance": 0.31245
}

Semantic roles & 50–950 ramp

primary
#7FA42C
secondary
#866BC0
accent
#47E176
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA42C

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

Preview Lab → · Contrast checker → · Palette generator →

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