#7FAB2C#7FAB2C

#7FAB2C 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#7FAB2C
RGBrgb(127, 171, 44)
HSLhsl(81, 59%, 42%)
HSVhsv(81, 74%, 67%)
CMYKcmyk(25.7%, 0%, 74.3%, 32.9%)
CIE-LABlab(64.82, -33.34, 56.79)
CIE-LCHlch(64.82, 65.85, 120.42°)
OKLaboklab(68.54% -0.0958 0.1266)
OKLCHoklch(68.54% 0.159 127.1)
XYZxyz(23.7700, 33.8192, 7.6578)
Luminance0.3382 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAB2C #582CAB
analogous
#AB972C #7FAB2C #40AB2C
triadic
#7FAB2C #2C7FAB #AB2C7F
tetradic
#7FAB2C #2CAB97 #582CAB #AB2C40
square
#7FAB2C #2CAB97 #582CAB #AB2C40
split-complementary
#7FAB2C #2C40AB #972CAB
monochromatic
#374A13 #5B7A1F #7FAB2C #9FCF45 #B8DC76

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FAB2C#FFFFFF#000000##000000
##7FAB2C1.002.707.767.76
#FFFFFF2.701.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7fab2c;
/* rgb */ color: rgb(127, 171, 44);
/* oklch */ color: oklch(68.5% 0.159 127.1);
Tailwind
colors: {
  custom: {
    50: '#a8c46e',
    500: '#7fab2c',
    950: '#000000',
  },
}
SCSS
$custom: #7fab2c;
$custom-light: #a8c46e;
$custom-dark: #000000;
JSON
{
  "hex": "#7fab2c",
  "rgb": {
    "r": 127,
    "g": 171,
    "b": 44
  },
  "hsl": {
    "h": 80.787,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.68542,
    "c": 0.15875,
    "h": 127.1
  },
  "luminance": 0.3382
}

Semantic roles & 50–950 ramp

primary
#7FAB2C
secondary
#8C6FC3
accent
#46E27C
background
#FAFCF6
surface
#F4F8EC
border
#CED1C7
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FAB2C

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

Preview Lab → · Contrast checker → · Palette generator →

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