#7EA228#7EA228

#7EA228 is a light, vivid yellow-green. Relative luminance 0.304; OKLCH L 66.3% C 0.150 H 125.0°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7EA228
RGBrgb(126, 162, 40)
HSLhsl(78, 60%, 40%)
HSVhsv(78, 75%, 64%)
CMYKcmyk(22.2%, 0%, 75.3%, 36.5%)
CIE-LABlab(62.02, -29.74, 55.46)
CIE-LCHlch(62.02, 62.93, 118.20°)
OKLaboklab(66.25% -0.0863 0.1232)
OKLCHoklch(66.25% 0.15 125)
XYZxyz(21.9077, 30.4292, 6.7263)
Luminance0.3043 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EA228 #4C28A2
analogous
#A28928 #7EA228 #41A228
triadic
#7EA228 #287EA2 #A2287E
tetradic
#7EA228 #28A289 #4C28A2 #A22841
square
#7EA228 #28A289 #4C28A2 #A22841
split-complementary
#7EA228 #2841A2 #8928A2
monochromatic
#324010 #58711C #7EA228 #A2CE39 #B9DA6A

Accessibility & contrast

On white

2.96
#7EA228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#7EA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EA228
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EA228#FFFFFF#000000##000000
##7EA2281.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB970D
Deuteranopia (green-blind)
#A69533
Tritanopia (blue-blind)
#849A8B
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #7ea228;
/* rgb */ color: rgb(126, 162, 40);
/* oklch */ color: oklch(66.3% 0.150 125.0);
Tailwind
colors: {
  custom: {
    50: '#a7bd6b',
    500: '#7ea228',
    950: '#000000',
  },
}
SCSS
$custom: #7ea228;
$custom-light: #a7bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7ea228",
  "rgb": {
    "r": 126,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 77.705,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.66251,
    "c": 0.15036,
    "h": 125
  },
  "luminance": 0.30429
}

Semantic roles & 50–950 ramp

primary
#7EA228
secondary
#8065C1
accent
#44E473
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7EA228

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

Preview Lab → · Contrast checker → · Palette generator →

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