#7FA840#7FA840

#7FA840 is a light, vivid yellow-green. Relative luminance 0.329; OKLCH L 68.0% C 0.140 H 127.9°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7FA840
RGBrgb(127, 168, 64)
HSLhsl(84, 45%, 45%)
HSVhsv(84, 62%, 66%)
CMYKcmyk(24.4%, 0%, 61.9%, 34.1%)
CIE-LABlab(64.07, -30.51, 47.97)
CIE-LCHlch(64.07, 56.85, 122.46°)
OKLaboklab(67.98% -0.0863 0.1108)
OKLCHoklch(67.98% 0.14 127.9)
XYZxyz(23.6804, 32.8870, 9.9497)
Luminance0.3289 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA840 #6940A8
analogous
#A89D40 #7FA840 #4BA840
triadic
#7FA840 #407FA8 #A8407F
tetradic
#7FA840 #40A89D #6940A8 #A8404B
square
#7FA840 #40A89D #6940A8 #A8404B
split-complementary
#7FA840 #404BA8 #9D40A8
monochromatic
#3C4F1E #5D7C2F #7FA840 #9DC362 #B9D48E

Accessibility & contrast

On white

2.77
#7FA840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#7FA840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA840
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA840#FFFFFF#000000##000000
##7FA8401.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D34
Deuteranopia (green-blind)
#AA9A48
Tritanopia (blue-blind)
#83A192
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #7fa840;
/* rgb */ color: rgb(127, 168, 64);
/* oklch */ color: oklch(68.0% 0.140 127.9);
Tailwind
colors: {
  custom: {
    50: '#a7c279',
    500: '#7fa840',
    950: '#000000',
  },
}
SCSS
$custom: #7fa840;
$custom-light: #a7c279;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa840",
  "rgb": {
    "r": 127,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 83.654,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.67983,
    "c": 0.14049,
    "h": 127.9
  },
  "luminance": 0.32887
}

Semantic roles & 50–950 ramp

primary
#7FA840
secondary
#9C85BF
accent
#53D586
background
#FAFBF7
surface
#F4F7EE
border
#CED0C9
text
#101209
muted
#7F817B

Preview Lab

Preview with #7FA840

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

Preview Lab → · Contrast checker → · Palette generator →

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