#7FAB2B#7FAB2B

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

Color values

HEX#7FAB2B
RGBrgb(127, 171, 43)
HSLhsl(81, 60%, 42%)
HSVhsv(81, 75%, 67%)
CMYKcmyk(25.7%, 0%, 74.9%, 32.9%)
CIE-LABlab(64.81, -33.40, 57.13)
CIE-LCHlch(64.81, 66.18, 120.31°)
OKLaboklab(68.54% -0.0961 0.1271)
OKLCHoklch(68.54% 0.159 127.1)
XYZxyz(23.7514, 33.8118, 7.5600)
Luminance0.3381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAB2B #572BAB
analogous
#AB972B #7FAB2B #3FAB2B
triadic
#7FAB2B #2B7FAB #AB2B7F
tetradic
#7FAB2B #2BAB97 #572BAB #AB2B3F
square
#7FAB2B #2BAB97 #572BAB #AB2B3F
split-complementary
#7FAB2B #2B3FAB #972BAB
monochromatic
#364912 #5B7A1F #7FAB2B #A0D043 #B8DC74

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FAB2B#FFFFFF#000000##000000
##7FAB2B1.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)
#B49F10
Deuteranopia (green-blind)
#AE9C37
Tritanopia (blue-blind)
#84A393
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #7fab2b;
/* rgb */ color: rgb(127, 171, 43);
/* oklch */ color: oklch(68.5% 0.159 127.1);
Tailwind
colors: {
  custom: {
    50: '#a8c46e',
    500: '#7fab2b',
    950: '#000000',
  },
}
SCSS
$custom: #7fab2b;
$custom-light: #a8c46e;
$custom-dark: #000000;
JSON
{
  "hex": "#7fab2b",
  "rgb": {
    "r": 127,
    "g": 171,
    "b": 43
  },
  "hsl": {
    "h": 80.625,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.68535,
    "c": 0.15935,
    "h": 127.1
  },
  "luminance": 0.33812
}

Semantic roles & 50–950 ramp

primary
#7FAB2B
secondary
#8C6EC4
accent
#45E37B
background
#FAFCF6
surface
#F4F8EC
border
#CED1C7
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FAB2B

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

Preview Lab → · Contrast checker → · Palette generator →

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