#7E9E1F#7E9E1F

#7E9E1F is a light, vivid yellow-green. Relative luminance 0.290; OKLCH L 65.2% C 0.150 H 123.5°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7E9E1F
RGBrgb(126, 158, 31)
HSLhsl(75, 67%, 37%)
HSVhsv(75, 80%, 62%)
CMYKcmyk(20.3%, 0%, 80.4%, 38%)
CIE-LABlab(60.77, -28.26, 57.19)
CIE-LCHlch(60.77, 63.80, 116.30°)
OKLaboklab(65.22% -0.0829 0.1253)
OKLCHoklch(65.22% 0.15 123.5)
XYZxyz(21.0786, 28.9881, 5.7808)
Luminance0.2899 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9E1F #3F1F9E
analogous
#9E7F1F #7E9E1F #3F9E1F
triadic
#7E9E1F #1F7E9E #9E1F7E
tetradic
#7E9E1F #1F9E7F #3F1F9E #9E1F3F
square
#7E9E1F #1F9E7F #3F1F9E #9E1F3F
split-complementary
#7E9E1F #1F3F9E #7F1F9E
monochromatic
#2C380B #556B15 #7E9E1F #A7D129 #BDDE59

Accessibility & contrast

On white

3.09
#7E9E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#7E9E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9E1F
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9E1F#FFFFFF#000000##000000
##7E9E1F1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79400
Deuteranopia (green-blind)
#A3922C
Tritanopia (blue-blind)
#859687
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #7e9e1f;
/* rgb */ color: rgb(126, 158, 31);
/* oklch */ color: oklch(65.2% 0.150 123.5);
Tailwind
colors: {
  custom: {
    50: '#a7ba67',
    500: '#7e9e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e9e1f;
$custom-light: #a7ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9e1f",
  "rgb": {
    "r": 126,
    "g": 158,
    "b": 31
  },
  "hsl": {
    "h": 75.118,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.65223,
    "c": 0.15026,
    "h": 123.5
  },
  "luminance": 0.28988
}

Semantic roles & 50–950 ramp

primary
#7E9E1F
secondary
#7256C2
accent
#3EEA69
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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