#7FA42D#7FA42D

#7FA42D 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#7FA42D
RGBrgb(127, 164, 45)
HSLhsl(79, 57%, 41%)
HSVhsv(79, 73%, 64%)
CMYKcmyk(22.6%, 0%, 72.6%, 35.7%)
CIE-LABlab(62.72, -30.00, 54.37)
CIE-LCHlch(62.72, 62.09, 118.89°)
OKLaboklab(66.84% -0.0866 0.1216)
OKLCHoklch(66.84% 0.149 125.5)
XYZxyz(22.5017, 31.2521, 7.3289)
Luminance0.3125 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA42D #522DA4
analogous
#A48D2D #7FA42D #44A42D
triadic
#7FA42D #2D7FA4 #A42D7F
tetradic
#7FA42D #2DA48D #522DA4 #A42D44
square
#7FA42D #2DA48D #522DA4 #A42D44
split-complementary
#7FA42D #2D44A4 #8D2DA4
monochromatic
#354413 #5A7420 #7FA42D #A1CB43 #B9D973

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FA42D#FFFFFF#000000##000000
##7FA42D1.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)
#AD9918
Deuteranopia (green-blind)
#A89737
Tritanopia (blue-blind)
#859C8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa42d;
/* rgb */ color: rgb(127, 164, 45);
/* oklch */ color: oklch(66.8% 0.149 125.5);
Tailwind
colors: {
  custom: {
    50: '#a8bf6e',
    500: '#7fa42d',
    950: '#000000',
  },
}
SCSS
$custom: #7fa42d;
$custom-light: #a8bf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa42d",
  "rgb": {
    "r": 127,
    "g": 164,
    "b": 45
  },
  "hsl": {
    "h": 78.655,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.66842,
    "c": 0.14933,
    "h": 125.5
  },
  "luminance": 0.31252
}

Semantic roles & 50–950 ramp

primary
#7FA42D
secondary
#876DC0
accent
#48E077
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA42D

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

Preview Lab → · Contrast checker → · Palette generator →

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