#7FA42E#7FA42E

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

Color values

HEX#7FA42E
RGBrgb(127, 164, 46)
HSLhsl(79, 56%, 41%)
HSVhsv(79, 72%, 64%)
CMYKcmyk(22.6%, 0%, 72%, 35.7%)
CIE-LABlab(62.73, -29.94, 54.00)
CIE-LCHlch(62.73, 61.74, 119.00°)
OKLaboklab(66.85% -0.0864 0.121)
OKLCHoklch(66.85% 0.149 125.5)
XYZxyz(22.5211, 31.2599, 7.4315)
Luminance0.3126 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA42E #532EA4
analogous
#A48E2E #7FA42E #44A42E
triadic
#7FA42E #2E7FA4 #A42E7F
tetradic
#7FA42E #2EA48E #532EA4 #A42E44
square
#7FA42E #2EA48E #532EA4 #A42E44
split-complementary
#7FA42E #2E44A4 #8E2EA4
monochromatic
#354413 #5A7421 #7FA42E #A1CB45 #B9D874

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FA42E#FFFFFF#000000##000000
##7FA42E1.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)
#AD991A
Deuteranopia (green-blind)
#A89738
Tritanopia (blue-blind)
#859C8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa42e;
/* rgb */ color: rgb(127, 164, 46);
/* oklch */ color: oklch(66.8% 0.149 125.5);
Tailwind
colors: {
  custom: {
    50: '#a7bf6f',
    500: '#7fa42e',
    950: '#000000',
  },
}
SCSS
$custom: #7fa42e;
$custom-light: #a7bf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa42e",
  "rgb": {
    "r": 127,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 78.814,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.6685,
    "c": 0.14869,
    "h": 125.5
  },
  "luminance": 0.3126
}

Semantic roles & 50–950 ramp

primary
#7FA42E
secondary
#886EC0
accent
#48DF78
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA42E

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

Preview Lab → · Contrast checker → · Palette generator →

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