#7FA42F#7FA42F

#7FA42F is a light, vivid yellow-green. Relative luminance 0.313; OKLCH L 66.9% C 0.148 H 125.6°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7FA42F
RGBrgb(127, 164, 47)
HSLhsl(79, 55%, 41%)
HSVhsv(79, 71%, 64%)
CMYKcmyk(22.6%, 0%, 71.3%, 35.7%)
CIE-LABlab(62.73, -29.88, 53.63)
CIE-LCHlch(62.73, 61.39, 119.12°)
OKLaboklab(66.86% -0.0861 0.1204)
OKLCHoklch(66.86% 0.148 125.6)
XYZxyz(22.5411, 31.2679, 7.5365)
Luminance0.3127 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA42F #542FA4
analogous
#A48F2F #7FA42F #45A42F
triadic
#7FA42F #2F7FA4 #A42F7F
tetradic
#7FA42F #2FA48F #542FA4 #A42F45
square
#7FA42F #2FA48F #542FA4 #A42F45
split-complementary
#7FA42F #2F45A4 #8F2FA4
monochromatic
#354514 #5A7421 #7FA42F #A0CA46 #B9D876

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FA42F#FFFFFF#000000##000000
##7FA42F1.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)
#AD991B
Deuteranopia (green-blind)
#A89739
Tritanopia (blue-blind)
#859C8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa42f;
/* rgb */ color: rgb(127, 164, 47);
/* oklch */ color: oklch(66.9% 0.148 125.6);
Tailwind
colors: {
  custom: {
    50: '#a7bf6f',
    500: '#7fa42f',
    950: '#000000',
  },
}
SCSS
$custom: #7fa42f;
$custom-light: #a7bf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa42f",
  "rgb": {
    "r": 127,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 78.974,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.66857,
    "c": 0.14803,
    "h": 125.6
  },
  "luminance": 0.31268
}

Semantic roles & 50–950 ramp

primary
#7FA42F
secondary
#896FC0
accent
#49DF78
background
#FAFBF7
surface
#F4F7ED
border
#CED0C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA42F

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

Preview Lab → · Contrast checker → · Palette generator →

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