#7FA42B#7FA42B

#7FA42B is a light, vivid yellow-green. Relative luminance 0.312; OKLCH L 66.8% C 0.151 H 125.3°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7FA42B
RGBrgb(127, 164, 43)
HSLhsl(78, 58%, 41%)
HSVhsv(78, 74%, 64%)
CMYKcmyk(22.6%, 0%, 73.8%, 35.7%)
CIE-LABlab(62.71, -30.12, 55.09)
CIE-LCHlch(62.71, 62.78, 118.67°)
OKLaboklab(66.83% -0.0871 0.1228)
OKLCHoklch(66.83% 0.151 125.3)
XYZxyz(22.4641, 31.2371, 7.1309)
Luminance0.3124 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA42B #502BA4
analogous
#A48C2B #7FA42B #42A42B
triadic
#7FA42B #2B7FA4 #A42B7F
tetradic
#7FA42B #2BA48C #502BA4 #A42B42
square
#7FA42B #2BA48C #502BA4 #A42B42
split-complementary
#7FA42B #2B42A4 #8C2BA4
monochromatic
#344312 #59741E #7FA42B #A2CD3F #B9D970

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FA42B#FFFFFF#000000##000000
##7FA42B1.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)
#AD9913
Deuteranopia (green-blind)
#A89736
Tritanopia (blue-blind)
#859C8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa42b;
/* rgb */ color: rgb(127, 164, 43);
/* oklch */ color: oklch(66.8% 0.151 125.3);
Tailwind
colors: {
  custom: {
    50: '#a8bf6d',
    500: '#7fa42b',
    950: '#000000',
  },
}
SCSS
$custom: #7fa42b;
$custom-light: #a8bf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa42b",
  "rgb": {
    "r": 127,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 78.347,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.66828,
    "c": 0.15058,
    "h": 125.3
  },
  "luminance": 0.31237
}

Semantic roles & 50–950 ramp

primary
#7FA42B
secondary
#856AC1
accent
#46E276
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA42B

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

Preview Lab → · Contrast checker → · Palette generator →

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