#7FA242#7FA242

#7FA242 is a light, vivid yellow-green. Relative luminance 0.307; OKLCH L 66.6% C 0.131 H 126.5°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7FA242
RGBrgb(127, 162, 66)
HSLhsl(82, 42%, 45%)
HSVhsv(82, 59%, 64%)
CMYKcmyk(21.6%, 0%, 59.3%, 36.5%)
CIE-LABlab(62.29, -27.45, 45.07)
CIE-LCHlch(62.29, 52.77, 121.34°)
OKLaboklab(66.55% -0.0777 0.1049)
OKLCHoklch(66.55% 0.131 126.5)
XYZxyz(22.6561, 30.7457, 9.8941)
Luminance0.3075 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA242 #6542A2
analogous
#A29542 #7FA242 #4FA242
triadic
#7FA242 #427FA2 #A2427F
tetradic
#7FA242 #42A295 #6542A2 #A2424F
square
#7FA242 #42A295 #6542A2 #A2424F
split-complementary
#7FA242 #424FA2 #9542A2
monochromatic
#3B4B1F #5D7730 #7FA242 #9DBF62 #B8D18E

Accessibility & contrast

On white

2.94
#7FA242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#7FA242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA242
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA242#FFFFFF#000000##000000
##7FA2421.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9838
Deuteranopia (green-blind)
#A59649
Tritanopia (blue-blind)
#849B8D
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #7fa242;
/* rgb */ color: rgb(127, 162, 66);
/* oklch */ color: oklch(66.6% 0.131 126.5);
Tailwind
colors: {
  custom: {
    50: '#a6bd7a',
    500: '#7fa242',
    950: '#000000',
  },
}
SCSS
$custom: #7fa242;
$custom-light: #a6bd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa242",
  "rgb": {
    "r": 127,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 81.875,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.66552,
    "c": 0.13053,
    "h": 126.5
  },
  "luminance": 0.30746
}

Semantic roles & 50–950 ramp

primary
#7FA242
secondary
#9884BC
accent
#56D283
background
#FAFBF7
surface
#F4F6EE
border
#CED0C9
text
#101209
muted
#7F817B

Preview Lab

Preview with #7FA242

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

Preview Lab → · Contrast checker → · Palette generator →

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