#7FAA31#7FAA31

#7FAA31 is a light, vivid yellow-green. Relative luminance 0.335; OKLCH L 68.3% C 0.154 H 127.2°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7FAA31
RGBrgb(127, 170, 49)
HSLhsl(81, 55%, 43%)
HSVhsv(81, 71%, 67%)
CMYKcmyk(25.3%, 0%, 71.2%, 33.3%)
CIE-LABlab(64.55, -32.57, 54.69)
CIE-LCHlch(64.55, 63.66, 120.78°)
OKLaboklab(68.33% -0.0933 0.123)
OKLCHoklch(68.33% 0.154 127.2)
XYZxyz(23.6815, 33.4828, 8.1203)
Luminance0.3348 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FAA31 #5C31AA
analogous
#AA9831 #7FAA31 #43AA31
triadic
#7FAA31 #317FAA #AA317F
tetradic
#7FAA31 #31AA98 #5C31AA #AA3143
square
#7FAA31 #31AA98 #5C31AA #AA3143
split-complementary
#7FAA31 #3143AA #9831AA
monochromatic
#384B16 #5C7A23 #7FAA31 #9ECC4D #B8D97C

Accessibility & contrast

On white

2.73
#7FAA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#7FAA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FAA31
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FAA31#FFFFFF#000000##000000
##7FAA311.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1D
Deuteranopia (green-blind)
#AD9C3C
Tritanopia (blue-blind)
#84A292
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #7faa31;
/* rgb */ color: rgb(127, 170, 49);
/* oklch */ color: oklch(68.3% 0.154 127.2);
Tailwind
colors: {
  custom: {
    50: '#a8c371',
    500: '#7faa31',
    950: '#000000',
  },
}
SCSS
$custom: #7faa31;
$custom-light: #a8c371;
$custom-dark: #000000;
JSON
{
  "hex": "#7faa31",
  "rgb": {
    "r": 127,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 81.322,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.68334,
    "c": 0.15436,
    "h": 127.2
  },
  "luminance": 0.33483
}

Semantic roles & 50–950 ramp

primary
#7FAA31
secondary
#9075C2
accent
#49DF7E
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101208
muted
#7F817B

Preview Lab

Preview with #7FAA31

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

Preview Lab → · Contrast checker → · Palette generator →

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