#7E9938#7E9938

#7E9938 is a light, vivid yellow-green. Relative luminance 0.275; OKLCH L 64.2% C 0.127 H 123.2°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7E9938
RGBrgb(126, 153, 56)
HSLhsl(77, 46%, 41%)
HSVhsv(77, 63%, 60%)
CMYKcmyk(17.6%, 0%, 63.4%, 40%)
CIE-LABlab(59.44, -24.29, 46.44)
CIE-LCHlch(59.44, 52.41, 117.61°)
OKLaboklab(64.2% -0.0698 0.1066)
OKLCHoklch(64.2% 0.127 123.2)
XYZxyz(20.7094, 27.5035, 7.9583)
Luminance0.2750 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9938 #533899
analogous
#998338 #7E9938 #4D9938
triadic
#7E9938 #387E99 #99387E
tetradic
#7E9938 #389983 #533899 #99384D
square
#7E9938 #389983 #533899 #99384D
split-complementary
#7E9938 #384D99 #833899
monochromatic
#343F17 #596C28 #7E9938 #A0BF4F #B8CF7C

Accessibility & contrast

On white

3.23
#7E9938 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#7E9938 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9938
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9938#FFFFFF#000000##000000
##7E99381.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A2902C
Deuteranopia (green-blind)
#9E8F3F
Tritanopia (blue-blind)
#849285
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #7e9938;
/* rgb */ color: rgb(126, 153, 56);
/* oklch */ color: oklch(64.2% 0.127 123.2);
Tailwind
colors: {
  custom: {
    50: '#a6b773',
    500: '#7e9938',
    950: '#000000',
  },
}
SCSS
$custom: #7e9938;
$custom-light: #a6b773;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9938",
  "rgb": {
    "r": 126,
    "g": 153,
    "b": 56
  },
  "hsl": {
    "h": 76.701,
    "s": 46.411,
    "l": 40.98
  },
  "oklch": {
    "l": 0.64199,
    "c": 0.12744,
    "h": 123.2
  },
  "luminance": 0.27504
}

Semantic roles & 50–950 ramp

primary
#7E9938
secondary
#8774B8
accent
#52D677
background
#FAFBF7
surface
#F4F6ED
border
#CED0C8
text
#101108
muted
#7F807B

Preview Lab

Preview with #7E9938

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

Preview Lab → · Contrast checker → · Palette generator →

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