#7FA628#7FA628

#7FA628 is a light, vivid yellow-green. Relative luminance 0.319; OKLCH L 67.3% C 0.155 H 125.7°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7FA628
RGBrgb(127, 166, 40)
HSLhsl(79, 61%, 40%)
HSVhsv(79, 76%, 65%)
CMYKcmyk(23.5%, 0%, 75.9%, 34.9%)
CIE-LABlab(63.29, -31.23, 56.70)
CIE-LCHlch(63.29, 64.73, 118.85°)
OKLaboklab(67.3% -0.0904 0.1257)
OKLCHoklch(67.3% 0.155 125.7)
XYZxyz(22.7718, 31.9373, 6.9719)
Luminance0.3194 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA628 #4F28A6
analogous
#A68E28 #7FA628 #40A628
triadic
#7FA628 #287FA6 #A6287F
tetradic
#7FA628 #28A68E #4F28A6 #A62840
square
#7FA628 #28A68E #4F28A6 #A62840
split-complementary
#7FA628 #2840A6 #8E28A6
monochromatic
#344310 #59751C #7FA628 #A2D03B #B9DC6D

Accessibility & contrast

On white

2.84
#7FA628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#7FA628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA628
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA628#FFFFFF#000000##000000
##7FA6281.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B0A
Deuteranopia (green-blind)
#AA9934
Tritanopia (blue-blind)
#859E8E
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #7fa628;
/* rgb */ color: rgb(127, 166, 40);
/* oklch */ color: oklch(67.3% 0.155 125.7);
Tailwind
colors: {
  custom: {
    50: '#a8c06c',
    500: '#7fa628',
    950: '#000000',
  },
}
SCSS
$custom: #7fa628;
$custom-light: #a8c06c;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa628",
  "rgb": {
    "r": 127,
    "g": 166,
    "b": 40
  },
  "hsl": {
    "h": 78.571,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.67295,
    "c": 0.15485,
    "h": 125.7
  },
  "luminance": 0.31938
}

Semantic roles & 50–950 ramp

primary
#7FA628
secondary
#8467C2
accent
#44E475
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA628

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

Preview Lab → · Contrast checker → · Palette generator →

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