#7FAB2D#7FAB2D

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

Color values

HEX#7FAB2D
RGBrgb(127, 171, 45)
HSLhsl(81, 58%, 42%)
HSVhsv(81, 74%, 67%)
CMYKcmyk(25.7%, 0%, 73.7%, 32.9%)
CIE-LABlab(64.82, -33.28, 56.44)
CIE-LCHlch(64.82, 65.52, 120.53°)
OKLaboklab(68.55% -0.0956 0.126)
OKLCHoklch(68.55% 0.158 127.2)
XYZxyz(23.7890, 33.8268, 7.7580)
Luminance0.3383 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAB2D #592DAB
analogous
#AB982D #7FAB2D #40AB2D
triadic
#7FAB2D #2D7FAB #AB2D7F
tetradic
#7FAB2D #2DAB98 #592DAB #AB2D40
square
#7FAB2D #2DAB98 #592DAB #AB2D40
split-complementary
#7FAB2D #2D40AB #982DAB
monochromatic
#374A14 #5B7B20 #7FAB2D #9FCE47 #B8DB77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FAB2D#FFFFFF#000000##000000
##7FAB2D1.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)
#B49F14
Deuteranopia (green-blind)
#AE9C39
Tritanopia (blue-blind)
#84A393
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #7fab2d;
/* rgb */ color: rgb(127, 171, 45);
/* oklch */ color: oklch(68.5% 0.158 127.2);
Tailwind
colors: {
  custom: {
    50: '#a8c46f',
    500: '#7fab2d',
    950: '#000000',
  },
}
SCSS
$custom: #7fab2d;
$custom-light: #a8c46f;
$custom-dark: #000000;
JSON
{
  "hex": "#7fab2d",
  "rgb": {
    "r": 127,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 80.952,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.68549,
    "c": 0.15815,
    "h": 127.2
  },
  "luminance": 0.33827
}

Semantic roles & 50–950 ramp

primary
#7FAB2D
secondary
#8D71C3
accent
#46E27C
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FAB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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