#7F951F#7F951F

#7F951F is a light, vivid yellow-green. Relative luminance 0.261; OKLCH L 63.1% C 0.139 H 120.1°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7F951F
RGBrgb(127, 149, 31)
HSLhsl(71, 66%, 35%)
HSVhsv(71, 79%, 58%)
CMYKcmyk(14.8%, 0%, 79.2%, 41.6%)
CIE-LABlab(58.14, -23.42, 54.82)
CIE-LCHlch(58.14, 59.62, 113.13°)
OKLaboklab(63.11% -0.0697 0.1202)
OKLCHoklch(63.11% 0.139 120.1)
XYZxyz(19.7476, 26.1059, 5.2947)
Luminance0.2611 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F951F #351F95
analogous
#95701F #7F951F #44951F
triadic
#7F951F #1F7F95 #951F7F
tetradic
#7F951F #1F9570 #351F95 #951F44
square
#7F951F #1F9570 #351F95 #951F44
split-complementary
#7F951F #1F4495 #701F95
monochromatic
#29300A #546214 #7F951F #AAC82A #C2DB53

Accessibility & contrast

On white

3.38
#7F951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#7F951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F951F
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F951F#FFFFFF#000000##000000
##7F951F1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C00
Deuteranopia (green-blind)
#9C8C2B
Tritanopia (blue-blind)
#878D7F
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #7f951f;
/* rgb */ color: rgb(127, 149, 31);
/* oklch */ color: oklch(63.1% 0.139 120.1);
Tailwind
colors: {
  custom: {
    50: '#a8b465',
    500: '#7f951f',
    950: '#000000',
  },
}
SCSS
$custom: #7f951f;
$custom-light: #a8b465;
$custom-dark: #000000;
JSON
{
  "hex": "#7f951f",
  "rgb": {
    "r": 127,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 71.186,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63114,
    "c": 0.139,
    "h": 120.1
  },
  "luminance": 0.26106
}

Semantic roles & 50–950 ramp

primary
#7F951F
secondary
#6651BF
accent
#3FE95F
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F951F

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

Preview Lab → · Contrast checker → · Palette generator →

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