#7FA142#7FA142

#7FA142 is a light, vivid yellow-green. Relative luminance 0.304; OKLCH L 66.3% C 0.129 H 126.2°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7FA142
RGBrgb(127, 161, 66)
HSLhsl(81, 42%, 45%)
HSVhsv(81, 59%, 63%)
CMYKcmyk(21.1%, 0%, 59%, 36.9%)
CIE-LABlab(61.99, -26.96, 44.73)
CIE-LCHlch(61.99, 52.23, 121.08°)
OKLaboklab(66.31% -0.0763 0.1042)
OKLCHoklch(66.31% 0.129 126.2)
XYZxyz(22.4806, 30.3948, 9.8356)
Luminance0.3039 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA142 #6442A1
analogous
#A19442 #7FA142 #50A142
triadic
#7FA142 #427FA1 #A1427F
tetradic
#7FA142 #42A194 #6442A1 #A14250
square
#7FA142 #42A194 #6442A1 #A14250
split-complementary
#7FA142 #4250A1 #9442A1
monochromatic
#3B4A1E #5D7630 #7FA142 #9DBF62 #B8D08D

Accessibility & contrast

On white

2.97
#7FA142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#7FA142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA142
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA142#FFFFFF#000000##000000
##7FA1421.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99738
Deuteranopia (green-blind)
#A49548
Tritanopia (blue-blind)
#849A8C
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #7fa142;
/* rgb */ color: rgb(127, 161, 66);
/* oklch */ color: oklch(66.3% 0.129 126.2);
Tailwind
colors: {
  custom: {
    50: '#a6bd7a',
    500: '#7fa142',
    950: '#000000',
  },
}
SCSS
$custom: #7fa142;
$custom-light: #a6bd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa142",
  "rgb": {
    "r": 127,
    "g": 161,
    "b": 66
  },
  "hsl": {
    "h": 81.474,
    "s": 41.85,
    "l": 44.51
  },
  "oklch": {
    "l": 0.6631,
    "c": 0.12914,
    "h": 126.2
  },
  "luminance": 0.30395
}

Semantic roles & 50–950 ramp

primary
#7FA142
secondary
#9783BB
accent
#56D282
background
#FAFBF7
surface
#F4F6EE
border
#CED0C9
text
#101209
muted
#7F817B

Preview Lab

Preview with #7FA142

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

Preview Lab → · Contrast checker → · Palette generator →

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