#7FA02B#7FA02B

#7FA02B is a light, vivid yellow-green. Relative luminance 0.298; OKLCH L 65.9% C 0.146 H 124.2°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7FA02B
RGBrgb(127, 160, 43)
HSLhsl(77, 58%, 40%)
HSVhsv(77, 73%, 63%)
CMYKcmyk(20.6%, 0%, 73.1%, 37.3%)
CIE-LABlab(61.51, -28.20, 53.91)
CIE-LCHlch(61.51, 60.84, 117.62°)
OKLaboklab(65.85% -0.0819 0.1204)
OKLCHoklch(65.85% 0.146 124.2)
XYZxyz(21.7595, 29.8279, 6.8960)
Luminance0.2983 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA02B #4C2BA0
analogous
#A0862B #7FA02B #45A02B
triadic
#7FA02B #2B7FA0 #A02B7F
tetradic
#7FA02B #2BA086 #4C2BA0 #A02B45
square
#7FA02B #2BA086 #4C2BA0 #A02B45
split-complementary
#7FA02B #2B45A0 #862BA0
monochromatic
#324011 #59701E #7FA02B #A3CB3D #BAD86E

Accessibility & contrast

On white

3.01
#7FA02B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#7FA02B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7FA02B
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA02B#FFFFFF#000000##000000
##7FA02B1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99615
Deuteranopia (green-blind)
#A59435
Tritanopia (blue-blind)
#859889
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #7fa02b;
/* rgb */ color: rgb(127, 160, 43);
/* oklch */ color: oklch(65.9% 0.146 124.2);
Tailwind
colors: {
  custom: {
    50: '#a7bc6d',
    500: '#7fa02b',
    950: '#000000',
  },
}
SCSS
$custom: #7fa02b;
$custom-light: #a7bc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa02b",
  "rgb": {
    "r": 127,
    "g": 160,
    "b": 43
  },
  "hsl": {
    "h": 76.923,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.65855,
    "c": 0.14557,
    "h": 124.2
  },
  "luminance": 0.29828
}

Semantic roles & 50–950 ramp

primary
#7FA02B
secondary
#8068BF
accent
#47E172
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA02B

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

Preview Lab → · Contrast checker → · Palette generator →

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