#7EAC31#7EAC31

#7EAC31 is a light, vivid yellow-green. Relative luminance 0.342; OKLCH L 68.8% C 0.157 H 128.0°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7EAC31
RGBrgb(126, 172, 49)
HSLhsl(82, 56%, 43%)
HSVhsv(82, 72%, 67%)
CMYKcmyk(26.7%, 0%, 71.5%, 32.5%)
CIE-LABlab(65.09, -33.89, 55.22)
CIE-LCHlch(65.09, 64.79, 121.54°)
OKLaboklab(68.76% -0.0969 0.1241)
OKLCHoklch(68.76% 0.157 128)
XYZxyz(23.9111, 34.1619, 8.2393)
Luminance0.3416 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EAC31 #5F31AC
analogous
#AC9C31 #7EAC31 #40AC31
triadic
#7EAC31 #317EAC #AC317E
tetradic
#7EAC31 #31AC9C #5F31AC #AC3140
square
#7EAC31 #31AC9C #5F31AC #AC3140
split-complementary
#7EAC31 #3140AC #9C31AC
monochromatic
#384D16 #5B7C23 #7EAC31 #9DCC4E #B7DA7D

Accessibility & contrast

On white

2.68
#7EAC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#7EAC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EAC31
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EAC31#FFFFFF#000000##000000
##7EAC311.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01C
Deuteranopia (green-blind)
#AE9D3C
Tritanopia (blue-blind)
#82A494
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #7eac31;
/* rgb */ color: rgb(126, 172, 49);
/* oklch */ color: oklch(68.8% 0.157 128.0);
Tailwind
colors: {
  custom: {
    50: '#a7c571',
    500: '#7eac31',
    950: '#000000',
  },
}
SCSS
$custom: #7eac31;
$custom-light: #a7c571;
$custom-dark: #000000;
JSON
{
  "hex": "#7eac31",
  "rgb": {
    "r": 126,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 82.439,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.68757,
    "c": 0.15741,
    "h": 128
  },
  "luminance": 0.34162
}

Semantic roles & 50–950 ramp

primary
#7EAC31
secondary
#9376C3
accent
#49DF81
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7EAC31

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

Preview Lab → · Contrast checker → · Palette generator →

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