#7E9A1F#7E9A1F

#7E9A1F is a light, vivid yellow-green. Relative luminance 0.276; OKLCH L 64.3% C 0.145 H 122.3°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7E9A1F
RGBrgb(126, 154, 31)
HSLhsl(74, 66%, 36%)
HSVhsv(74, 80%, 60%)
CMYKcmyk(18.2%, 0%, 79.9%, 39.6%)
CIE-LABlab(59.57, -26.32, 56.10)
CIE-LCHlch(59.57, 61.97, 115.13°)
OKLaboklab(64.25% -0.0776 0.123)
OKLCHoklch(64.25% 0.145 122.3)
XYZxyz(20.4074, 27.6457, 5.5571)
Luminance0.2765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9A1F #3B1F9A
analogous
#9A791F #7E9A1F #419A1F
triadic
#7E9A1F #1F7E9A #9A1F7E
tetradic
#7E9A1F #1F9A79 #3B1F9A #9A1F41
square
#7E9A1F #1F9A79 #3B1F9A #9A1F41
split-complementary
#7E9A1F #1F419A #791F9A
monochromatic
#2B340A #546715 #7E9A1F #A8CD29 #BEDD56

Accessibility & contrast

On white

3.22
#7E9A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#7E9A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9A1F
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9A1F#FFFFFF#000000##000000
##7E9A1F1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#A08F2C
Tritanopia (blue-blind)
#859283
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #7e9a1f;
/* rgb */ color: rgb(126, 154, 31);
/* oklch */ color: oklch(64.3% 0.145 122.3);
Tailwind
colors: {
  custom: {
    50: '#a7b766',
    500: '#7e9a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e9a1f;
$custom-light: #a7b766;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9a1f",
  "rgb": {
    "r": 126,
    "g": 154,
    "b": 31
  },
  "hsl": {
    "h": 73.659,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.6425,
    "c": 0.14543,
    "h": 122.3
  },
  "luminance": 0.27646
}

Semantic roles & 50–950 ramp

primary
#7E9A1F
secondary
#6D54C1
accent
#3EE965
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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