#7FBF31#7FBF31

#7FBF31 is a light, vivid yellow-green. Relative luminance 0.420; OKLCH L 73.5% C 0.181 H 131.2°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7FBF31
RGBrgb(127, 191, 49)
HSLhsl(87, 59%, 47%)
HSVhsv(87, 74%, 75%)
CMYKcmyk(33.5%, 0%, 74.3%, 25.1%)
CIE-LABlab(70.87, -41.98, 60.94)
CIE-LCHlch(70.87, 74.01, 124.56°)
OKLaboklab(73.47% -0.119 0.1361)
OKLCHoklch(73.47% 0.181 131.2)
XYZxyz(27.9373, 41.9944, 9.5389)
Luminance0.4199 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FBF31 #7131BF
analogous
#BFB831 #7FBF31 #38BF31
triadic
#7FBF31 #317FBF #BF317F
tetradic
#7FBF31 #31BFB8 #7131BF #BF3138
square
#7FBF31 #31BFB8 #7131BF #BF3138
split-complementary
#7FBF31 #3138BF #B831BF
monochromatic
#3E5E18 #5F8E25 #7FBF31 #9DD459 #BAE18A

Accessibility & contrast

On white

2.23
#7FBF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#7FBF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FBF31
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FBF31#FFFFFF#000000##000000
##7FBF311.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B113
Deuteranopia (green-blind)
#BFAC3F
Tritanopia (blue-blind)
#81B7A4
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #7fbf31;
/* rgb */ color: rgb(127, 191, 49);
/* oklch */ color: oklch(73.5% 0.181 131.2);
Tailwind
colors: {
  custom: {
    50: '#a9d273',
    500: '#7fbf31',
    950: '#000000',
  },
}
SCSS
$custom: #7fbf31;
$custom-light: #a9d273;
$custom-dark: #000000;
JSON
{
  "hex": "#7fbf31",
  "rgb": {
    "r": 127,
    "g": 191,
    "b": 49
  },
  "hsl": {
    "h": 87.042,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.73472,
    "c": 0.18072,
    "h": 131.2
  },
  "luminance": 0.41995
}

Semantic roles & 50–950 ramp

primary
#7FBF31
secondary
#A281CB
accent
#45E28C
background
#FAFCF7
surface
#F4F9ED
border
#CED2C8
text
#101409
muted
#7F827B

Preview Lab

Preview with #7FBF31

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

Preview Lab → · Contrast checker → · Palette generator →

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