#7E9C2F#7E9C2F

#7E9C2F is a light, vivid yellow-green. Relative luminance 0.284; OKLCH L 64.8% C 0.138 H 123.6°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7E9C2F
RGBrgb(126, 156, 47)
HSLhsl(77, 54%, 40%)
HSVhsv(77, 70%, 61%)
CMYKcmyk(19.2%, 0%, 69.9%, 38.8%)
CIE-LABlab(60.26, -26.43, 51.11)
CIE-LCHlch(60.26, 57.54, 117.34°)
OKLaboklab(64.84% -0.0766 0.1152)
OKLCHoklch(64.84% 0.138 123.6)
XYZxyz(21.0059, 28.4177, 7.0673)
Luminance0.2842 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9C2F #4D2F9C
analogous
#9C842F #7E9C2F #479C2F
triadic
#7E9C2F #2F7E9C #9C2F7E
tetradic
#7E9C2F #2F9C84 #4D2F9C #9C2F47
square
#7E9C2F #2F9C84 #4D2F9C #9C2F47
split-complementary
#7E9C2F #2F479C #842F9C
monochromatic
#323E13 #586D21 #7E9C2F #A2C642 #B9D471

Accessibility & contrast

On white

3.14
#7E9C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#7E9C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9C2F
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9C2F#FFFFFF#000000##000000
##7E9C2F1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5921E
Deuteranopia (green-blind)
#A19138
Tritanopia (blue-blind)
#849486
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7e9c2f;
/* rgb */ color: rgb(126, 156, 47);
/* oklch */ color: oklch(64.8% 0.138 123.6);
Tailwind
colors: {
  custom: {
    50: '#a6b96e',
    500: '#7e9c2f',
    950: '#000000',
  },
}
SCSS
$custom: #7e9c2f;
$custom-light: #a6b96e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9c2f",
  "rgb": {
    "r": 126,
    "g": 156,
    "b": 47
  },
  "hsl": {
    "h": 76.514,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.64843,
    "c": 0.13828,
    "h": 123.6
  },
  "luminance": 0.28418
}

Semantic roles & 50–950 ramp

primary
#7E9C2F
secondary
#816BBC
accent
#4BDD73
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101108
muted
#7F807B

Preview Lab

Preview with #7E9C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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