#7F9E1F#7F9E1F

#7F9E1F is a light, vivid yellow-green. Relative luminance 0.291; OKLCH L 65.3% C 0.150 H 123.1°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7F9E1F
RGBrgb(127, 158, 31)
HSLhsl(75, 67%, 37%)
HSVhsv(75, 80%, 62%)
CMYKcmyk(19.6%, 0%, 80.4%, 38%)
CIE-LABlab(60.84, -27.84, 57.28)
CIE-LCHlch(60.84, 63.69, 115.92°)
OKLaboklab(65.3% -0.0819 0.1255)
OKLCHoklch(65.3% 0.15 123.1)
XYZxyz(21.2269, 29.0646, 5.7878)
Luminance0.2907 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9E1F #3E1F9E
analogous
#9E7E1F #7F9E1F #3F9E1F
triadic
#7F9E1F #1F7F9E #9E1F7F
tetradic
#7F9E1F #1F9E7E #3E1F9E #9E1F3F
square
#7F9E1F #1F9E7E #3E1F9E #9E1F3F
split-complementary
#7F9E1F #1F3F9E #7E1F9E
monochromatic
#2D380B #566B15 #7F9E1F #A8D129 #BEDE59

Accessibility & contrast

On white

3.08
#7F9E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#7F9E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9E1F
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9E1F#FFFFFF#000000##000000
##7F9E1F1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#A4932C
Tritanopia (blue-blind)
#869687
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #7f9e1f;
/* rgb */ color: rgb(127, 158, 31);
/* oklch */ color: oklch(65.3% 0.150 123.1);
Tailwind
colors: {
  custom: {
    50: '#a8ba67',
    500: '#7f9e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7f9e1f;
$custom-light: #a8ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9e1f",
  "rgb": {
    "r": 127,
    "g": 158,
    "b": 31
  },
  "hsl": {
    "h": 74.646,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.65295,
    "c": 0.14979,
    "h": 123.1
  },
  "luminance": 0.29065
}

Semantic roles & 50–950 ramp

primary
#7F9E1F
secondary
#7156C2
accent
#3EEA68
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F9E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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