#7FA421#7FA421

#7FA421 is a light, vivid yellow-green. Relative luminance 0.312; OKLCH L 66.8% C 0.156 H 124.9°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7FA421
RGBrgb(127, 164, 33)
HSLhsl(77, 66%, 39%)
HSVhsv(77, 80%, 64%)
CMYKcmyk(22.6%, 0%, 79.9%, 35.7%)
CIE-LABlab(62.65, -30.63, 58.33)
CIE-LCHlch(62.65, 65.88, 117.70°)
OKLaboklab(66.77% -0.0893 0.128)
OKLCHoklch(66.77% 0.156 124.9)
XYZxyz(22.3026, 31.1725, 6.2805)
Luminance0.3117 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA421 #4621A4
analogous
#A48721 #7FA421 #3DA421
triadic
#7FA421 #217FA4 #A4217F
tetradic
#7FA421 #21A487 #4621A4 #A4213D
square
#7FA421 #21A487 #4621A4 #A4213D
split-complementary
#7FA421 #213DA4 #8721A4
monochromatic
#303E0C #587117 #7FA421 #A6D52D #BBDF60

Accessibility & contrast

On white

2.90
#7FA421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#7FA421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA421
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA421#FFFFFF#000000##000000
##7FA4211.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9900
Deuteranopia (green-blind)
#A8972F
Tritanopia (blue-blind)
#859C8C
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa421;
/* rgb */ color: rgb(127, 164, 33);
/* oklch */ color: oklch(66.8% 0.156 124.9);
Tailwind
colors: {
  custom: {
    50: '#a8bf68',
    500: '#7fa421',
    950: '#000000',
  },
}
SCSS
$custom: #7fa421;
$custom-light: #a8bf68;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa421",
  "rgb": {
    "r": 127,
    "g": 164,
    "b": 33
  },
  "hsl": {
    "h": 76.947,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.66767,
    "c": 0.15607,
    "h": 124.9
  },
  "luminance": 0.31173
}

Semantic roles & 50–950 ramp

primary
#7FA421
secondary
#7A5DC4
accent
#3EE96F
background
#FAFBF6
surface
#F4F7EB
border
#CED0C6
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA421

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

Preview Lab → · Contrast checker → · Palette generator →

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