#7FA228#7FA228

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

Color values

HEX#7FA228
RGBrgb(127, 162, 40)
HSLhsl(77, 60%, 40%)
HSVhsv(77, 75%, 64%)
CMYKcmyk(21.6%, 0%, 75.3%, 36.5%)
CIE-LABlab(62.09, -29.33, 55.55)
CIE-LCHlch(62.09, 62.81, 117.84°)
OKLaboklab(66.32% -0.0852 0.1233)
OKLCHoklch(66.32% 0.15 124.6)
XYZxyz(22.0559, 30.5057, 6.7333)
Luminance0.3051 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA228 #4B28A2
analogous
#A28828 #7FA228 #42A228
triadic
#7FA228 #287FA2 #A2287F
tetradic
#7FA228 #28A288 #4B28A2 #A22842
square
#7FA228 #28A288 #4B28A2 #A22842
split-complementary
#7FA228 #2842A2 #8828A2
monochromatic
#324010 #59711C #7FA228 #A3CE39 #BADA6A

Accessibility & contrast

On white

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

On black

7.10
#7FA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA228
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA228#FFFFFF#000000##000000
##7FA2281.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7fa228;
/* rgb */ color: rgb(127, 162, 40);
/* oklch */ color: oklch(66.3% 0.150 124.6);
Tailwind
colors: {
  custom: {
    50: '#a8bd6b',
    500: '#7fa228',
    950: '#000000',
  },
}
SCSS
$custom: #7fa228;
$custom-light: #a8bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa228",
  "rgb": {
    "r": 127,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 77.213,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.66321,
    "c": 0.14988,
    "h": 124.6
  },
  "luminance": 0.30506
}

Semantic roles & 50–950 ramp

primary
#7FA228
secondary
#7F65C1
accent
#44E472
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA228

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

Preview Lab → · Contrast checker → · Palette generator →

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