#7C9D1F#7C9D1F

#7C9D1F is a light, vivid yellow-green. Relative luminance 0.285; OKLCH L 64.8% C 0.150 H 124.0°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7C9D1F
RGBrgb(124, 157, 31)
HSLhsl(76, 67%, 37%)
HSVhsv(76, 80%, 62%)
CMYKcmyk(21%, 0%, 80.3%, 38.4%)
CIE-LABlab(60.34, -28.61, 56.75)
CIE-LCHlch(60.34, 63.56, 116.76°)
OKLaboklab(64.84% -0.0838 0.1244)
OKLCHoklch(64.84% 0.15 124)
XYZxyz(20.6167, 28.4978, 5.7105)
Luminance0.2850 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C9D1F #401F9D
analogous
#9D7F1F #7C9D1F #3D9D1F
triadic
#7C9D1F #1F7C9D #9D1F7C
tetradic
#7C9D1F #1F9D7F #401F9D #9D1F3D
square
#7C9D1F #1F9D7F #401F9D #9D1F3D
split-complementary
#7C9D1F #1F3D9D #7F1F9D
monochromatic
#2B370B #546A15 #7C9D1F #A4D029 #BBDE58

Accessibility & contrast

On white

3.13
#7C9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#7C9D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C9D1F
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C9D1F#FFFFFF#000000##000000
##7C9D1F1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A2912C
Tritanopia (blue-blind)
#829586
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7c9d1f;
/* rgb */ color: rgb(124, 157, 31);
/* oklch */ color: oklch(64.8% 0.150 124.0);
Tailwind
colors: {
  custom: {
    50: '#a6ba67',
    500: '#7c9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7c9d1f;
$custom-light: #a6ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#7c9d1f",
  "rgb": {
    "r": 124,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 75.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.64836,
    "c": 0.14999,
    "h": 124
  },
  "luminance": 0.28498
}

Semantic roles & 50–950 ramp

primary
#7C9D1F
secondary
#7256C2
accent
#3EEA6B
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7C9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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