#7FAB2F#7FAB2F

#7FAB2F is a light, vivid yellow-green. Relative luminance 0.338; OKLCH L 68.6% C 0.157 H 127.3°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7FAB2F
RGBrgb(127, 171, 47)
HSLhsl(81, 57%, 43%)
HSVhsv(81, 73%, 67%)
CMYKcmyk(25.7%, 0%, 72.5%, 32.9%)
CIE-LABlab(64.84, -33.16, 55.73)
CIE-LCHlch(64.84, 64.85, 120.76°)
OKLaboklab(68.56% -0.0951 0.1248)
OKLCHoklch(68.56% 0.157 127.3)
XYZxyz(23.8284, 33.8426, 7.9656)
Luminance0.3384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAB2F #5B2FAB
analogous
#AB992F #7FAB2F #41AB2F
triadic
#7FAB2F #2F7FAB #AB2F7F
tetradic
#7FAB2F #2FAB99 #5B2FAB #AB2F41
square
#7FAB2F #2FAB99 #5B2FAB #AB2F41
split-complementary
#7FAB2F #2F41AB #992FAB
monochromatic
#384B15 #5B7B22 #7FAB2F #9FCD4A #B8DA7A

Accessibility & contrast

On white

2.70
#7FAB2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#7FAB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FAB2F
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FAB2F#FFFFFF#000000##000000
##7FAB2F1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F19
Deuteranopia (green-blind)
#AE9C3A
Tritanopia (blue-blind)
#84A393
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #7fab2f;
/* rgb */ color: rgb(127, 171, 47);
/* oklch */ color: oklch(68.6% 0.157 127.3);
Tailwind
colors: {
  custom: {
    50: '#a8c470',
    500: '#7fab2f',
    950: '#000000',
  },
}
SCSS
$custom: #7fab2f;
$custom-light: #a8c470;
$custom-dark: #000000;
JSON
{
  "hex": "#7fab2f",
  "rgb": {
    "r": 127,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 81.29,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.68563,
    "c": 0.15692,
    "h": 127.3
  },
  "luminance": 0.33843
}

Semantic roles & 50–950 ramp

primary
#7FAB2F
secondary
#8F73C3
accent
#48E07E
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FAB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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