#7FA342#7FA342

#7FA342 is a light, vivid yellow-green. Relative luminance 0.311; OKLCH L 66.8% C 0.132 H 126.8°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7FA342
RGBrgb(127, 163, 66)
HSLhsl(82, 42%, 45%)
HSVhsv(82, 60%, 64%)
CMYKcmyk(22.1%, 0%, 59.5%, 36.1%)
CIE-LABlab(62.59, -27.93, 45.41)
CIE-LCHlch(62.59, 53.31, 121.60°)
OKLaboklab(66.79% -0.079 0.1056)
OKLCHoklch(66.79% 0.132 126.8)
XYZxyz(22.8329, 31.0994, 9.9530)
Luminance0.3110 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA342 #6642A3
analogous
#A39642 #7FA342 #4FA342
triadic
#7FA342 #427FA3 #A3427F
tetradic
#7FA342 #42A396 #6642A3 #A3424F
square
#7FA342 #42A396 #6642A3 #A3424F
split-complementary
#7FA342 #424FA3 #9642A3
monochromatic
#3B4C1F #5D7730 #7FA342 #9DC063 #B8D18E

Accessibility & contrast

On white

2.91
#7FA342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#7FA342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA342
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA342#FFFFFF#000000##000000
##7FA3421.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9937
Deuteranopia (green-blind)
#A69749
Tritanopia (blue-blind)
#839C8E
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #7fa342;
/* rgb */ color: rgb(127, 163, 66);
/* oklch */ color: oklch(66.8% 0.132 126.8);
Tailwind
colors: {
  custom: {
    50: '#a6be7a',
    500: '#7fa342',
    950: '#000000',
  },
}
SCSS
$custom: #7fa342;
$custom-light: #a6be7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa342",
  "rgb": {
    "r": 127,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 82.268,
    "s": 42.358,
    "l": 44.902
  },
  "oklch": {
    "l": 0.66793,
    "c": 0.13191,
    "h": 126.8
  },
  "luminance": 0.311
}

Semantic roles & 50–950 ramp

primary
#7FA342
secondary
#9984BC
accent
#56D284
background
#FAFBF7
surface
#F4F6EE
border
#CED0C9
text
#101209
muted
#7F817B

Preview Lab

Preview with #7FA342

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

Preview Lab → · Contrast checker → · Palette generator →

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