#7FAB31#7FAB31

#7FAB31 is a light, vivid yellow-green. Relative luminance 0.339; OKLCH L 68.6% C 0.156 H 127.4°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7FAB31
RGBrgb(127, 171, 49)
HSLhsl(82, 55%, 43%)
HSVhsv(82, 71%, 67%)
CMYKcmyk(25.7%, 0%, 71.3%, 32.9%)
CIE-LABlab(64.85, -33.04, 55.00)
CIE-LCHlch(64.85, 64.16, 120.99°)
OKLaboklab(68.58% -0.0946 0.1236)
OKLCHoklch(68.58% 0.156 127.4)
XYZxyz(23.8697, 33.8591, 8.1830)
Luminance0.3386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAB31 #5D31AB
analogous
#AB9A31 #7FAB31 #42AB31
triadic
#7FAB31 #317FAB #AB317F
tetradic
#7FAB31 #31AB9A #5D31AB #AB3142
square
#7FAB31 #31AB9A #5D31AB #AB3142
split-complementary
#7FAB31 #3142AB #9A31AB
monochromatic
#384C16 #5C7B23 #7FAB31 #9ECC4D #B8DA7D

Accessibility & contrast

On white

2.70
#7FAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#7FAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FAB31
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FAB31#FFFFFF#000000##000000
##7FAB311.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1C
Deuteranopia (green-blind)
#AE9C3C
Tritanopia (blue-blind)
#84A393
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #7fab31;
/* rgb */ color: rgb(127, 171, 49);
/* oklch */ color: oklch(68.6% 0.156 127.4);
Tailwind
colors: {
  custom: {
    50: '#a8c471',
    500: '#7fab31',
    950: '#000000',
  },
}
SCSS
$custom: #7fab31;
$custom-light: #a8c471;
$custom-dark: #000000;
JSON
{
  "hex": "#7fab31",
  "rgb": {
    "r": 127,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 81.639,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.68578,
    "c": 0.15564,
    "h": 127.4
  },
  "luminance": 0.3386
}

Semantic roles & 50–950 ramp

primary
#7FAB31
secondary
#9175C2
accent
#49DF7F
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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