#7F9D1F#7F9D1F

#7F9D1F is a light, vivid yellow-green. Relative luminance 0.287; OKLCH L 65.1% C 0.149 H 122.8°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7F9D1F
RGBrgb(127, 157, 31)
HSLhsl(74, 67%, 37%)
HSVhsv(74, 80%, 62%)
CMYKcmyk(19.1%, 0%, 80.3%, 38.4%)
CIE-LABlab(60.54, -27.36, 57.01)
CIE-LCHlch(60.54, 63.23, 115.64°)
OKLaboklab(65.05% -0.0805 0.1249)
OKLCHoklch(65.05% 0.149 122.8)
XYZxyz(21.0570, 28.7248, 5.7312)
Luminance0.2873 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9D1F #3D1F9D
analogous
#9D7C1F #7F9D1F #409D1F
triadic
#7F9D1F #1F7F9D #9D1F7F
tetradic
#7F9D1F #1F9D7C #3D1F9D #9D1F40
square
#7F9D1F #1F9D7C #3D1F9D #9D1F40
split-complementary
#7F9D1F #1F409D #7C1F9D
monochromatic
#2C370B #566A15 #7F9D1F #A8D029 #BEDE58

Accessibility & contrast

On white

3.11
#7F9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#7F9D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9D1F
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9D1F#FFFFFF#000000##000000
##7F9D1F1.003.116.746.74
#FFFFFF3.111.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#A3922C
Tritanopia (blue-blind)
#869586
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #7f9d1f;
/* rgb */ color: rgb(127, 157, 31);
/* oklch */ color: oklch(65.1% 0.149 122.8);
Tailwind
colors: {
  custom: {
    50: '#a8ba67',
    500: '#7f9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7f9d1f;
$custom-light: #a8ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9d1f",
  "rgb": {
    "r": 127,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 74.286,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.65052,
    "c": 0.14859,
    "h": 122.8
  },
  "luminance": 0.28725
}

Semantic roles & 50–950 ramp

primary
#7F9D1F
secondary
#7056C2
accent
#3EEA67
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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