#7E9417#7E9417

#7E9417 is a light, vivid yellow-green. Relative luminance 0.257; OKLCH L 62.8% C 0.142 H 120.0°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7E9417
RGBrgb(126, 148, 23)
HSLhsl(71, 73%, 34%)
HSVhsv(71, 84%, 58%)
CMYKcmyk(14.9%, 0%, 84.5%, 42%)
CIE-LABlab(57.73, -23.67, 56.73)
CIE-LCHlch(57.73, 61.47, 112.65°)
OKLaboklab(62.76% -0.0709 0.123)
OKLCHoklch(62.76% 0.142 120)
XYZxyz(19.3492, 25.6774, 4.7473)
Luminance0.2568 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9417 #2D1794
analogous
#946B17 #7E9417 #3F9417
triadic
#7E9417 #177E94 #94177E
tetradic
#7E9417 #17946B #2D1794 #94173F
square
#7E9417 #17946B #2D1794 #94173F
split-complementary
#7E9417 #173F94 #6B1794
monochromatic
#242A07 #515F0F #7E9417 #ABC91F #C6E244

Accessibility & contrast

On white

3.42
#7E9417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#7E9417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9417
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9417#FFFFFF#000000##000000
##7E94171.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#9B8B25
Tritanopia (blue-blind)
#868C7E
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #7e9417;
/* rgb */ color: rgb(126, 148, 23);
/* oklch */ color: oklch(62.8% 0.142 120.0);
Tailwind
colors: {
  custom: {
    50: '#a7b362',
    500: '#7e9417',
    950: '#000000',
  },
}
SCSS
$custom: #7e9417;
$custom-light: #a7b362;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9417",
  "rgb": {
    "r": 126,
    "g": 148,
    "b": 23
  },
  "hsl": {
    "h": 70.56,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.62755,
    "c": 0.14195,
    "h": 120
  },
  "luminance": 0.25677
}

Semantic roles & 50–950 ramp

primary
#7E9417
secondary
#5A44C3
accent
#38F058
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9417

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

Preview Lab → · Contrast checker → · Palette generator →

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