#7E9C1F#7E9C1F

#7E9C1F is a light, vivid yellow-green. Relative luminance 0.283; OKLCH L 64.7% C 0.148 H 122.9°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7E9C1F
RGBrgb(126, 156, 31)
HSLhsl(74, 67%, 37%)
HSVhsv(74, 80%, 61%)
CMYKcmyk(19.2%, 0%, 80.1%, 38.8%)
CIE-LABlab(60.17, -27.29, 56.65)
CIE-LCHlch(60.17, 62.88, 115.73°)
OKLaboklab(64.74% -0.0803 0.1241)
OKLCHoklch(64.74% 0.148 122.9)
XYZxyz(20.7403, 28.3114, 5.6680)
Luminance0.2831 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9C1F #3D1F9C
analogous
#9C7C1F #7E9C1F #409C1F
triadic
#7E9C1F #1F7E9C #9C1F7E
tetradic
#7E9C1F #1F9C7C #3D1F9C #9C1F40
square
#7E9C1F #1F9C7C #3D1F9C #9C1F40
split-complementary
#7E9C1F #1F409C #7C1F9C
monochromatic
#2C360B #556915 #7E9C1F #A7CF29 #BEDE58

Accessibility & contrast

On white

3.15
#7E9C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#7E9C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9C1F
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9C1F#FFFFFF#000000##000000
##7E9C1F1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A2912C
Tritanopia (blue-blind)
#859485
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7e9c1f;
/* rgb */ color: rgb(126, 156, 31);
/* oklch */ color: oklch(64.7% 0.148 122.9);
Tailwind
colors: {
  custom: {
    50: '#a7b966',
    500: '#7e9c1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e9c1f;
$custom-light: #a7b966;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9c1f",
  "rgb": {
    "r": 126,
    "g": 156,
    "b": 31
  },
  "hsl": {
    "h": 74.4,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.64736,
    "c": 0.14784,
    "h": 122.9
  },
  "luminance": 0.28311
}

Semantic roles & 50–950 ramp

primary
#7E9C1F
secondary
#6F55C1
accent
#3EEA67
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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