#7FA042#7FA042

#7FA042 is a light, vivid yellow-green. Relative luminance 0.300; OKLCH L 66.1% C 0.128 H 125.9°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7FA042
RGBrgb(127, 160, 66)
HSLhsl(81, 42%, 44%)
HSVhsv(81, 59%, 63%)
CMYKcmyk(20.6%, 0%, 58.8%, 37.3%)
CIE-LABlab(61.69, -26.48, 44.39)
CIE-LCHlch(61.69, 51.69, 120.81°)
OKLaboklab(66.07% -0.075 0.1035)
OKLCHoklch(66.07% 0.128 125.9)
XYZxyz(22.3066, 30.0467, 9.7776)
Luminance0.3005 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA042 #6342A0
analogous
#A09242 #7FA042 #50A042
triadic
#7FA042 #427FA0 #A0427F
tetradic
#7FA042 #42A092 #6342A0 #A04250
square
#7FA042 #42A092 #6342A0 #A04250
split-complementary
#7FA042 #4250A0 #9242A0
monochromatic
#3A491E #5D7530 #7FA042 #9DBE61 #B8D08D

Accessibility & contrast

On white

3.00
#7FA042 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#7FA042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA042
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA042#FFFFFF#000000##000000
##7FA0421.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89638
Deuteranopia (green-blind)
#A39548
Tritanopia (blue-blind)
#84998C
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #7fa042;
/* rgb */ color: rgb(127, 160, 66);
/* oklch */ color: oklch(66.1% 0.128 125.9);
Tailwind
colors: {
  custom: {
    50: '#a6bc7a',
    500: '#7fa042',
    950: '#000000',
  },
}
SCSS
$custom: #7fa042;
$custom-light: #a6bc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa042",
  "rgb": {
    "r": 127,
    "g": 160,
    "b": 66
  },
  "hsl": {
    "h": 81.064,
    "s": 41.593,
    "l": 44.314
  },
  "oklch": {
    "l": 0.66069,
    "c": 0.12776,
    "h": 125.9
  },
  "luminance": 0.30047
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7FA042

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

Preview Lab → · Contrast checker → · Palette generator →

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