#7FA81F#7FA81F

#7FA81F is a light, vivid yellow-green. Relative luminance 0.326; OKLCH L 67.7% C 0.162 H 125.8°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7FA81F
RGBrgb(127, 168, 31)
HSLhsl(78, 69%, 39%)
HSVhsv(78, 82%, 66%)
CMYKcmyk(24.4%, 0%, 81.5%, 34.1%)
CIE-LABlab(63.85, -32.59, 59.99)
CIE-LCHlch(63.85, 68.27, 118.51°)
OKLaboklab(67.73% -0.0947 0.1312)
OKLCHoklch(67.73% 0.162 125.8)
XYZxyz(23.0025, 32.6159, 6.3797)
Luminance0.3262 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA81F #481FA8
analogous
#A88D1F #7FA81F #3BA81F
triadic
#7FA81F #1F7FA8 #A81F7F
tetradic
#7FA81F #1FA88D #481FA8 #A81F3B
square
#7FA81F #1FA88D #481FA8 #A81F3B
split-complementary
#7FA81F #1F3BA8 #8D1FA8
monochromatic
#31410C #587415 #7FA81F #A5D82C #BBE260

Accessibility & contrast

On white

2.79
#7FA81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#7FA81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA81F
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA81F#FFFFFF#000000##000000
##7FA81F1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#AC9A2E
Tritanopia (blue-blind)
#85A08F
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #7fa81f;
/* rgb */ color: rgb(127, 168, 31);
/* oklch */ color: oklch(67.7% 0.162 125.8);
Tailwind
colors: {
  custom: {
    50: '#a8c268',
    500: '#7fa81f',
    950: '#000000',
  },
}
SCSS
$custom: #7fa81f;
$custom-light: #a8c268;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa81f",
  "rgb": {
    "r": 127,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 77.956,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.67733,
    "c": 0.16184,
    "h": 125.8
  },
  "luminance": 0.32616
}

Semantic roles & 50–950 ramp

primary
#7FA81F
secondary
#7C5DC6
accent
#3CEC71
background
#FAFBF6
surface
#F4F7EB
border
#CED0C6
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA81F

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

Preview Lab → · Contrast checker → · Palette generator →

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