#7E9D2F#7E9D2F

#7E9D2F is a light, vivid yellow-green. Relative luminance 0.288; OKLCH L 65.1% C 0.140 H 123.9°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7E9D2F
RGBrgb(126, 157, 47)
HSLhsl(77, 54%, 40%)
HSVhsv(77, 70%, 62%)
CMYKcmyk(19.7%, 0%, 70.1%, 38.4%)
CIE-LABlab(60.56, -26.91, 51.42)
CIE-LCHlch(60.56, 58.04, 117.63°)
OKLaboklab(65.09% -0.0779 0.1158)
OKLCHoklch(65.09% 0.14 123.9)
XYZxyz(21.1744, 28.7546, 7.1234)
Luminance0.2875 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9D2F #4E2F9D
analogous
#9D852F #7E9D2F #479D2F
triadic
#7E9D2F #2F7E9D #9D2F7E
tetradic
#7E9D2F #2F9D85 #4E2F9D #9D2F47
square
#7E9D2F #2F9D85 #4E2F9D #9D2F47
split-complementary
#7E9D2F #2F479D #852F9D
monochromatic
#323F13 #586E21 #7E9D2F #A1C743 #B9D572

Accessibility & contrast

On white

3.11
#7E9D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#7E9D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9D2F
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9D2F#FFFFFF#000000##000000
##7E9D2F1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6931E
Deuteranopia (green-blind)
#A29238
Tritanopia (blue-blind)
#849587
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #7e9d2f;
/* rgb */ color: rgb(126, 157, 47);
/* oklch */ color: oklch(65.1% 0.140 123.9);
Tailwind
colors: {
  custom: {
    50: '#a6ba6e',
    500: '#7e9d2f',
    950: '#000000',
  },
}
SCSS
$custom: #7e9d2f;
$custom-light: #a6ba6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9d2f",
  "rgb": {
    "r": 126,
    "g": 157,
    "b": 47
  },
  "hsl": {
    "h": 76.909,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.65086,
    "c": 0.13956,
    "h": 123.9
  },
  "luminance": 0.28755
}

Semantic roles & 50–950 ramp

primary
#7E9D2F
secondary
#826BBC
accent
#4BDD74
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101108
muted
#7F807B

Preview Lab

Preview with #7E9D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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