#7FA531#7FA531

#7FA531 is a light, vivid yellow-green. Relative luminance 0.316; OKLCH L 67.1% C 0.148 H 126.0°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7FA531
RGBrgb(127, 165, 49)
HSLhsl(80, 54%, 42%)
HSVhsv(80, 70%, 65%)
CMYKcmyk(23%, 0%, 70.3%, 35.3%)
CIE-LABlab(63.05, -30.22, 53.18)
CIE-LCHlch(63.05, 61.16, 119.61°)
OKLaboklab(67.12% -0.0869 0.1198)
OKLCHoklch(67.12% 0.148 126)
XYZxyz(22.7620, 31.6437, 7.8138)
Luminance0.3164 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA531 #5731A5
analogous
#A59131 #7FA531 #45A531
triadic
#7FA531 #317FA5 #A5317F
tetradic
#7FA531 #31A591 #5731A5 #A53145
square
#7FA531 #31A591 #5731A5 #A53145
split-complementary
#7FA531 #3145A5 #9131A5
monochromatic
#364715 #5B7623 #7FA531 #A0C94A #B8D779

Accessibility & contrast

On white

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

On black

7.33
#7FA531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA531
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA531#FFFFFF#000000##000000
##7FA5311.002.877.337.33
#FFFFFF2.871.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1F
Deuteranopia (green-blind)
#A9983B
Tritanopia (blue-blind)
#849D8E
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #7fa531;
/* rgb */ color: rgb(127, 165, 49);
/* oklch */ color: oklch(67.1% 0.148 126.0);
Tailwind
colors: {
  custom: {
    50: '#a7bf70',
    500: '#7fa531',
    950: '#000000',
  },
}
SCSS
$custom: #7fa531;
$custom-light: #a7bf70;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa531",
  "rgb": {
    "r": 127,
    "g": 165,
    "b": 49
  },
  "hsl": {
    "h": 79.655,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.67116,
    "c": 0.14797,
    "h": 126
  },
  "luminance": 0.31644
}

Semantic roles & 50–950 ramp

primary
#7FA531
secondary
#8C72C0
accent
#4ADE7A
background
#FAFBF7
surface
#F4F7ED
border
#CED0C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA531

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

Preview Lab → · Contrast checker → · Palette generator →

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