#7FBA31#7FBA31

#7FBA31 is a light, vivid yellow-green. Relative luminance 0.399; OKLCH L 72.2% C 0.175 H 130.4°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7FBA31
RGBrgb(127, 186, 49)
HSLhsl(86, 58%, 46%)
HSVhsv(86, 74%, 73%)
CMYKcmyk(31.7%, 0%, 73.7%, 27.1%)
CIE-LABlab(69.36, -39.81, 59.47)
CIE-LCHlch(69.36, 71.57, 123.79°)
OKLaboklab(72.25% -0.1131 0.133)
OKLCHoklch(72.25% 0.175 130.4)
XYZxyz(26.8655, 39.8507, 9.1816)
Luminance0.3985 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FBA31 #6C31BA
analogous
#BAB031 #7FBA31 #3BBA31
triadic
#7FBA31 #317FBA #BA317F
tetradic
#7FBA31 #31BAB0 #6C31BA #BA313B
square
#7FBA31 #31BAB0 #6C31BA #BA313B
split-complementary
#7FBA31 #313BBA #B031BA
monochromatic
#3D5917 #5E8A24 #7FBA31 #9DD256 #B9DF86

Accessibility & contrast

On white

2.34
#7FBA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#7FBA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FBA31
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FBA31#FFFFFF#000000##000000
##7FBA311.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC16
Deuteranopia (green-blind)
#BAA83E
Tritanopia (blue-blind)
#82B2A0
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #7fba31;
/* rgb */ color: rgb(127, 186, 49);
/* oklch */ color: oklch(72.2% 0.175 130.4);
Tailwind
colors: {
  custom: {
    50: '#a9cf73',
    500: '#7fba31',
    950: '#000000',
  },
}
SCSS
$custom: #7fba31;
$custom-light: #a9cf73;
$custom-dark: #000000;
JSON
{
  "hex": "#7fba31",
  "rgb": {
    "r": 127,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 85.839,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72246,
    "c": 0.17454,
    "h": 130.4
  },
  "luminance": 0.39852
}

Semantic roles & 50–950 ramp

primary
#7FBA31
secondary
#9E7EC9
accent
#46E289
background
#FAFCF7
surface
#F4F9ED
border
#CED2C8
text
#101409
muted
#7F827B

Preview Lab

Preview with #7FBA31

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

Preview Lab → · Contrast checker → · Palette generator →

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