#7FAB2A#7FAB2A

#7FAB2A is a light, vivid yellow-green. Relative luminance 0.338; OKLCH L 68.5% C 0.160 H 127.0°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7FAB2A
RGBrgb(127, 171, 42)
HSLhsl(80, 61%, 42%)
HSVhsv(80, 75%, 67%)
CMYKcmyk(25.7%, 0%, 75.4%, 32.9%)
CIE-LABlab(64.81, -33.45, 57.47)
CIE-LCHlch(64.81, 66.50, 120.20°)
OKLaboklab(68.53% -0.0963 0.1277)
OKLCHoklch(68.53% 0.16 127)
XYZxyz(23.7333, 33.8046, 7.4646)
Luminance0.3381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAB2A #562AAB
analogous
#AB972A #7FAB2A #3FAB2A
triadic
#7FAB2A #2A7FAB #AB2A7F
tetradic
#7FAB2A #2AAB97 #562AAB #AB2A3F
square
#7FAB2A #2AAB97 #562AAB #AB2A3F
split-complementary
#7FAB2A #2A3FAB #972AAB
monochromatic
#364912 #5B7A1E #7FAB2A #A0D142 #B9DD73

Accessibility & contrast

On white

2.71
#7FAB2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#7FAB2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FAB2A
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FAB2A#FFFFFF#000000##000000
##7FAB2A1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F0D
Deuteranopia (green-blind)
#AE9C36
Tritanopia (blue-blind)
#84A392
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #7fab2a;
/* rgb */ color: rgb(127, 171, 42);
/* oklch */ color: oklch(68.5% 0.160 127.0);
Tailwind
colors: {
  custom: {
    50: '#a8c46d',
    500: '#7fab2a',
    950: '#000000',
  },
}
SCSS
$custom: #7fab2a;
$custom-light: #a8c46d;
$custom-dark: #000000;
JSON
{
  "hex": "#7fab2a",
  "rgb": {
    "r": 127,
    "g": 171,
    "b": 42
  },
  "hsl": {
    "h": 80.465,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.68529,
    "c": 0.15992,
    "h": 127
  },
  "luminance": 0.33805
}

Semantic roles & 50–950 ramp

primary
#7FAB2A
secondary
#8B6DC4
accent
#44E47B
background
#FAFCF6
surface
#F4F8EC
border
#CED1C7
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FAB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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