#7EA227#7EA227

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

Color values

HEX#7EA227
RGBrgb(126, 162, 39)
HSLhsl(78, 61%, 39%)
HSVhsv(78, 76%, 64%)
CMYKcmyk(22.2%, 0%, 75.9%, 36.5%)
CIE-LABlab(62.02, -29.79, 55.80)
CIE-LCHlch(62.02, 63.25, 118.10°)
OKLaboklab(66.25% -0.0865 0.1237)
OKLCHoklch(66.25% 0.151 125)
XYZxyz(21.8909, 30.4225, 6.6379)
Luminance0.3042 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EA227 #4B27A2
analogous
#A28927 #7EA227 #41A227
triadic
#7EA227 #277EA2 #A2277E
tetradic
#7EA227 #27A289 #4B27A2 #A22741
square
#7EA227 #27A289 #4B27A2 #A22741
split-complementary
#7EA227 #2741A2 #8927A2
monochromatic
#313F0F #58711B #7EA227 #A3CF37 #B9DB69

Accessibility & contrast

On white

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

On black

7.08
#7EA227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EA227
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EA227#FFFFFF#000000##000000
##7EA2271.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7ea227;
/* rgb */ color: rgb(126, 162, 39);
/* oklch */ color: oklch(66.2% 0.151 125.0);
Tailwind
colors: {
  custom: {
    50: '#a7bd6b',
    500: '#7ea227',
    950: '#000000',
  },
}
SCSS
$custom: #7ea227;
$custom-light: #a7bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7ea227",
  "rgb": {
    "r": 126,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 77.561,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.66245,
    "c": 0.15094,
    "h": 125
  },
  "luminance": 0.30423
}

Semantic roles & 50–950 ramp

primary
#7EA227
secondary
#7F64C1
accent
#43E473
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7EA227

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

Preview Lab → · Contrast checker → · Palette generator →

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