#7FA631#7FA631

#7FA631 is a light, vivid yellow-green. Relative luminance 0.320; OKLCH L 67.4% C 0.149 H 126.2°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7FA631
RGBrgb(127, 166, 49)
HSLhsl(80, 54%, 42%)
HSVhsv(80, 70%, 65%)
CMYKcmyk(23.5%, 0%, 70.5%, 34.9%)
CIE-LABlab(63.35, -30.70, 53.48)
CIE-LCHlch(63.35, 61.66, 119.85°)
OKLaboklab(67.36% -0.0882 0.1204)
OKLCHoklch(67.36% 0.149 126.2)
XYZxyz(22.9431, 32.0059, 7.8741)
Luminance0.3201 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA631 #5831A6
analogous
#A69331 #7FA631 #44A631
triadic
#7FA631 #317FA6 #A6317F
tetradic
#7FA631 #31A693 #5831A6 #A63144
square
#7FA631 #31A693 #5831A6 #A63144
split-complementary
#7FA631 #3144A6 #9331A6
monochromatic
#374715 #5B7723 #7FA631 #9FCA4A #B8D87A

Accessibility & contrast

On white

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

On black

7.40
#7FA631 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA631
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA631#FFFFFF#000000##000000
##7FA6311.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B1E
Deuteranopia (green-blind)
#A9993B
Tritanopia (blue-blind)
#849E8F
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #7fa631;
/* rgb */ color: rgb(127, 166, 49);
/* oklch */ color: oklch(67.4% 0.149 126.2);
Tailwind
colors: {
  custom: {
    50: '#a7c070',
    500: '#7fa631',
    950: '#000000',
  },
}
SCSS
$custom: #7fa631;
$custom-light: #a7c070;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa631",
  "rgb": {
    "r": 127,
    "g": 166,
    "b": 49
  },
  "hsl": {
    "h": 80,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.67359,
    "c": 0.14925,
    "h": 126.2
  },
  "luminance": 0.32006
}

Semantic roles & 50–950 ramp

primary
#7FA631
secondary
#8C73C0
accent
#4ADE7B
background
#FAFBF7
surface
#F4F7ED
border
#CED0C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA631

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

Preview Lab → · Contrast checker → · Palette generator →

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