#7FA931#7FA931

#7FA931 is a light, vivid yellow-green. Relative luminance 0.331; OKLCH L 68.1% C 0.153 H 127.0°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7FA931
RGBrgb(127, 169, 49)
HSLhsl(81, 55%, 43%)
HSVhsv(81, 71%, 66%)
CMYKcmyk(24.9%, 0%, 71%, 33.7%)
CIE-LABlab(64.25, -32.11, 54.39)
CIE-LCHlch(64.25, 63.16, 120.55°)
OKLaboklab(68.09% -0.0921 0.1223)
OKLCHoklch(68.09% 0.153 127)
XYZxyz(23.4948, 33.1093, 8.0580)
Luminance0.3311 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA931 #5B31A9
analogous
#A99731 #7FA931 #43A931
triadic
#7FA931 #317FA9 #A9317F
tetradic
#7FA931 #31A997 #5B31A9 #A93143
square
#7FA931 #31A997 #5B31A9 #A93143
split-complementary
#7FA931 #3143A9 #9731A9
monochromatic
#384A15 #5B7A23 #7FA931 #9FCB4C #B8D97C

Accessibility & contrast

On white

2.76
#7FA931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#7FA931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA931
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA931#FFFFFF#000000##000000
##7FA9311.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D1D
Deuteranopia (green-blind)
#AC9B3B
Tritanopia (blue-blind)
#84A191
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #7fa931;
/* rgb */ color: rgb(127, 169, 49);
/* oklch */ color: oklch(68.1% 0.153 127.0);
Tailwind
colors: {
  custom: {
    50: '#a8c271',
    500: '#7fa931',
    950: '#000000',
  },
}
SCSS
$custom: #7fa931;
$custom-light: #a8c271;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa931",
  "rgb": {
    "r": 127,
    "g": 169,
    "b": 49
  },
  "hsl": {
    "h": 81,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.6809,
    "c": 0.15309,
    "h": 127
  },
  "luminance": 0.3311
}

Semantic roles & 50–950 ramp

primary
#7FA931
secondary
#8F74C1
accent
#49DE7E
background
#FAFBF7
surface
#F4F7ED
border
#CED0C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA931

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

Preview Lab → · Contrast checker → · Palette generator →

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