#7FA831#7FA831

#7FA831 is a light, vivid yellow-green. Relative luminance 0.327; OKLCH L 67.8% C 0.152 H 126.7°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7FA831
RGBrgb(127, 168, 49)
HSLhsl(81, 55%, 43%)
HSVhsv(81, 71%, 66%)
CMYKcmyk(24.4%, 0%, 70.8%, 34.1%)
CIE-LABlab(63.95, -31.64, 54.09)
CIE-LCHlch(63.95, 62.66, 120.32°)
OKLaboklab(67.85% -0.0908 0.1217)
OKLCHoklch(67.85% 0.152 126.7)
XYZxyz(23.3095, 32.7386, 7.9963)
Luminance0.3274 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA831 #5A31A8
analogous
#A89531 #7FA831 #44A831
triadic
#7FA831 #317FA8 #A8317F
tetradic
#7FA831 #31A895 #5A31A8 #A83144
square
#7FA831 #31A895 #5A31A8 #A83144
split-complementary
#7FA831 #3144A8 #9531A8
monochromatic
#374915 #5B7923 #7FA831 #9FCB4C #B8D87B

Accessibility & contrast

On white

2.78
#7FA831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#7FA831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA831
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA831#FFFFFF#000000##000000
##7FA8311.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1E
Deuteranopia (green-blind)
#AB9A3B
Tritanopia (blue-blind)
#84A091
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #7fa831;
/* rgb */ color: rgb(127, 168, 49);
/* oklch */ color: oklch(67.8% 0.152 126.7);
Tailwind
colors: {
  custom: {
    50: '#a8c271',
    500: '#7fa831',
    950: '#000000',
  },
}
SCSS
$custom: #7fa831;
$custom-light: #a8c271;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa831",
  "rgb": {
    "r": 127,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 80.672,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.67846,
    "c": 0.15181,
    "h": 126.7
  },
  "luminance": 0.32739
}

Semantic roles & 50–950 ramp

primary
#7FA831
secondary
#8E74C1
accent
#4ADE7D
background
#FAFBF7
surface
#F4F7ED
border
#CED0C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FA831

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

Preview Lab → · Contrast checker → · Palette generator →

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