#7FA02C#7FA02C

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

Color values

HEX#7FA02C
RGBrgb(127, 160, 44)
HSLhsl(77, 57%, 40%)
HSVhsv(77, 73%, 63%)
CMYKcmyk(20.6%, 0%, 72.5%, 37.3%)
CIE-LABlab(61.51, -28.14, 53.54)
CIE-LCHlch(61.51, 60.49, 117.73°)
OKLaboklab(65.86% -0.0816 0.1198)
OKLCHoklch(65.86% 0.145 124.3)
XYZxyz(21.7780, 29.8353, 6.9938)
Luminance0.2984 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA02C #4D2CA0
analogous
#A0872C #7FA02C #45A02C
triadic
#7FA02C #2C7FA0 #A02C7F
tetradic
#7FA02C #2CA087 #4D2CA0 #A02C45
square
#7FA02C #2CA087 #4D2CA0 #A02C45
split-complementary
#7FA02C #2C45A0 #872CA0
monochromatic
#334012 #59701F #7FA02C #A3CA3F #BAD76F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7FA02C#FFFFFF#000000##000000
##7FA02C1.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)
#A99617
Deuteranopia (green-blind)
#A59436
Tritanopia (blue-blind)
#859889
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #7fa02c;
/* rgb */ color: rgb(127, 160, 44);
/* oklch */ color: oklch(65.9% 0.145 124.3);
Tailwind
colors: {
  custom: {
    50: '#a7bc6d',
    500: '#7fa02c',
    950: '#000000',
  },
}
SCSS
$custom: #7fa02c;
$custom-light: #a7bc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa02c",
  "rgb": {
    "r": 127,
    "g": 160,
    "b": 44
  },
  "hsl": {
    "h": 77.069,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.65862,
    "c": 0.14493,
    "h": 124.3
  },
  "luminance": 0.29835
}

Semantic roles & 50–950 ramp

primary
#7FA02C
secondary
#8269BF
accent
#48E073
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA02C

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

Preview Lab → · Contrast checker → · Palette generator →

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