#7FA731#7FA731

#7FA731 is a light, vivid yellow-green. Relative luminance 0.324; OKLCH L 67.6% C 0.151 H 126.5°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7FA731
RGBrgb(127, 167, 49)
HSLhsl(80, 55%, 42%)
HSVhsv(80, 71%, 65%)
CMYKcmyk(24%, 0%, 70.7%, 34.5%)
CIE-LABlab(63.65, -31.17, 53.78)
CIE-LCHlch(63.65, 62.16, 120.09°)
OKLaboklab(67.6% -0.0895 0.121)
OKLCHoklch(67.6% 0.151 126.5)
XYZxyz(23.1256, 32.3708, 7.9350)
Luminance0.3237 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA731 #5931A7
analogous
#A79431 #7FA731 #44A731
triadic
#7FA731 #317FA7 #A7317F
tetradic
#7FA731 #31A794 #5931A7 #A73144
square
#7FA731 #31A794 #5931A7 #A73144
split-complementary
#7FA731 #3144A7 #9431A7
monochromatic
#374815 #5B7823 #7FA731 #9FCA4B #B8D87A

Accessibility & contrast

On white

2.81
#7FA731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#7FA731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA731
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA731#FFFFFF#000000##000000
##7FA7311.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1E
Deuteranopia (green-blind)
#AA993B
Tritanopia (blue-blind)
#849F90
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #7fa731;
/* rgb */ color: rgb(127, 167, 49);
/* oklch */ color: oklch(67.6% 0.151 126.5);
Tailwind
colors: {
  custom: {
    50: '#a7c170',
    500: '#7fa731',
    950: '#000000',
  },
}
SCSS
$custom: #7fa731;
$custom-light: #a7c170;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa731",
  "rgb": {
    "r": 127,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 80.339,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.67603,
    "c": 0.15052,
    "h": 126.5
  },
  "luminance": 0.32371
}

Semantic roles & 50–950 ramp

primary
#7FA731
secondary
#8D73C1
accent
#4ADE7C
background
#FAFBF7
surface
#F4F7ED
border
#CED0C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA731

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

Preview Lab → · Contrast checker → · Palette generator →

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