#7FAF2A#7FAF2A

#7FAF2A is a light, vivid yellow-green. Relative luminance 0.353; OKLCH L 69.5% C 0.165 H 127.9°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7FAF2A
RGBrgb(127, 175, 42)
HSLhsl(82, 61%, 43%)
HSVhsv(82, 76%, 69%)
CMYKcmyk(27.4%, 0%, 76%, 31.4%)
CIE-LABlab(66.01, -35.29, 58.62)
CIE-LCHlch(66.01, 68.42, 121.05°)
OKLaboklab(69.51% -0.1013 0.1301)
OKLCHoklch(69.51% 0.165 127.9)
XYZxyz(24.5003, 35.3386, 7.7202)
Luminance0.3534 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAF2A #5A2AAF
analogous
#AF9C2A #7FAF2A #3DAF2A
triadic
#7FAF2A #2A7FAF #AF2A7F
tetradic
#7FAF2A #2AAF9C #5A2AAF #AF2A3D
square
#7FAF2A #2AAF9C #5A2AAF #AF2A3D
split-complementary
#7FAF2A #2A3DAF #9C2AAF
monochromatic
#374C12 #5B7E1E #7FAF2A #9FD244 #B8DE75

Accessibility & contrast

On white

2.60
#7FAF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#7FAF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FAF2A
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FAF2A#FFFFFF#000000##000000
##7FAF2A1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A20A
Deuteranopia (green-blind)
#B19F37
Tritanopia (blue-blind)
#84A796
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #7faf2a;
/* rgb */ color: rgb(127, 175, 42);
/* oklch */ color: oklch(69.5% 0.165 127.9);
Tailwind
colors: {
  custom: {
    50: '#a8c76e',
    500: '#7faf2a',
    950: '#000000',
  },
}
SCSS
$custom: #7faf2a;
$custom-light: #a8c76e;
$custom-dark: #000000;
JSON
{
  "hex": "#7faf2a",
  "rgb": {
    "r": 127,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 81.654,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69507,
    "c": 0.16488,
    "h": 127.9
  },
  "luminance": 0.35339
}

Semantic roles & 50–950 ramp

primary
#7FAF2A
secondary
#8E6FC6
accent
#43E47E
background
#FAFCF6
surface
#F4F8EC
border
#CED1C7
text
#101308
muted
#7F827B

Preview Lab

Preview with #7FAF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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