#7FA520#7FA520

#7FA520 is a light, vivid yellow-green. Relative luminance 0.315; OKLCH L 67.0% C 0.158 H 125.1°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7FA520
RGBrgb(127, 165, 32)
HSLhsl(77, 68%, 39%)
HSVhsv(77, 81%, 65%)
CMYKcmyk(23%, 0%, 80.6%, 35.3%)
CIE-LABlab(62.95, -31.14, 58.90)
CIE-LCHlch(62.95, 66.62, 117.87°)
OKLaboklab(67.01% -0.0907 0.129)
OKLCHoklch(67.01% 0.158 125.1)
XYZxyz(22.4684, 31.5263, 6.2677)
Luminance0.3153 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA520 #4620A5
analogous
#A58820 #7FA520 #3CA520
triadic
#7FA520 #207FA5 #A5207F
tetradic
#7FA520 #20A588 #4620A5 #A5203C
square
#7FA520 #20A588 #4620A5 #A5203C
split-complementary
#7FA520 #203CA5 #8820A5
monochromatic
#303E0C #587216 #7FA520 #A6D62C #BBE05F

Accessibility & contrast

On white

2.87
#7FA520 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#7FA520 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA520
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA520#FFFFFF#000000##000000
##7FA5201.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A00
Deuteranopia (green-blind)
#A9982E
Tritanopia (blue-blind)
#859D8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa520;
/* rgb */ color: rgb(127, 165, 32);
/* oklch */ color: oklch(67.0% 0.158 125.1);
Tailwind
colors: {
  custom: {
    50: '#a8bf68',
    500: '#7fa520',
    950: '#000000',
  },
}
SCSS
$custom: #7fa520;
$custom-light: #a8bf68;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa520",
  "rgb": {
    "r": 127,
    "g": 165,
    "b": 32
  },
  "hsl": {
    "h": 77.143,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.67005,
    "c": 0.15776,
    "h": 125.1
  },
  "luminance": 0.31527
}

Semantic roles & 50–950 ramp

primary
#7FA520
secondary
#7A5CC5
accent
#3DEA6F
background
#FAFBF6
surface
#F4F7EB
border
#CED0C6
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA520

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

Preview Lab → · Contrast checker → · Palette generator →

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