#7FA72B#7FA72B

#7FA72B is a light, vivid yellow-green. Relative luminance 0.323; OKLCH L 67.6% C 0.154 H 126.1°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7FA72B
RGBrgb(127, 167, 43)
HSLhsl(79, 59%, 41%)
HSVhsv(79, 74%, 65%)
CMYKcmyk(24%, 0%, 74.3%, 34.5%)
CIE-LABlab(63.61, -31.53, 55.96)
CIE-LCHlch(63.61, 64.24, 119.40°)
OKLaboklab(67.56% -0.091 0.1247)
OKLCHoklch(67.56% 0.154 126.1)
XYZxyz(23.0073, 32.3235, 7.3120)
Luminance0.3232 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA72B #532BA7
analogous
#A7912B #7FA72B #41A72B
triadic
#7FA72B #2B7FA7 #A72B7F
tetradic
#7FA72B #2BA791 #532BA7 #A72B41
square
#7FA72B #2BA791 #532BA7 #A72B41
split-complementary
#7FA72B #2B41A7 #912BA7
monochromatic
#354612 #5A761E #7FA72B #A1CE41 #B9DB72

Accessibility & contrast

On white

2.81
#7FA72B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#7FA72B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA72B
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA72B#FFFFFF#000000##000000
##7FA72B1.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C12
Deuteranopia (green-blind)
#AB9936
Tritanopia (blue-blind)
#849F8F
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #7fa72b;
/* rgb */ color: rgb(127, 167, 43);
/* oklch */ color: oklch(67.6% 0.154 126.1);
Tailwind
colors: {
  custom: {
    50: '#a8c16d',
    500: '#7fa72b',
    950: '#000000',
  },
}
SCSS
$custom: #7fa72b;
$custom-light: #a8c16d;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa72b",
  "rgb": {
    "r": 127,
    "g": 167,
    "b": 43
  },
  "hsl": {
    "h": 79.355,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.67559,
    "c": 0.15434,
    "h": 126.1
  },
  "luminance": 0.32324
}

Semantic roles & 50–950 ramp

primary
#7FA72B
secondary
#886CC2
accent
#46E278
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA72B

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

Preview Lab → · Contrast checker → · Palette generator →

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