#7D9C2F#7D9C2F

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

Color values

HEX#7D9C2F
RGBrgb(125, 156, 47)
HSLhsl(77, 54%, 40%)
HSVhsv(77, 70%, 61%)
CMYKcmyk(19.9%, 0%, 69.9%, 38.8%)
CIE-LABlab(60.20, -26.84, 51.02)
CIE-LCHlch(60.20, 57.65, 117.74°)
OKLaboklab(64.77% -0.0776 0.115)
OKLCHoklch(64.77% 0.139 124)
XYZxyz(20.8592, 28.3420, 7.0604)
Luminance0.2834 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D9C2F #4E2F9C
analogous
#9C852F #7D9C2F #479C2F
triadic
#7D9C2F #2F7D9C #9C2F7D
tetradic
#7D9C2F #2F9C85 #4E2F9C #9C2F47
square
#7D9C2F #2F9C85 #4E2F9C #9C2F47
split-complementary
#7D9C2F #2F479C #852F9C
monochromatic
#323E13 #576D21 #7D9C2F #A1C642 #B8D471

Accessibility & contrast

On white

3.15
#7D9C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#7D9C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D9C2F
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D9C2F#FFFFFF#000000##000000
##7D9C2F1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5921E
Deuteranopia (green-blind)
#A19138
Tritanopia (blue-blind)
#839486
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7d9c2f;
/* rgb */ color: rgb(125, 156, 47);
/* oklch */ color: oklch(64.8% 0.139 124.0);
Tailwind
colors: {
  custom: {
    50: '#a6b96e',
    500: '#7d9c2f',
    950: '#000000',
  },
}
SCSS
$custom: #7d9c2f;
$custom-light: #a6b96e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d9c2f",
  "rgb": {
    "r": 125,
    "g": 156,
    "b": 47
  },
  "hsl": {
    "h": 77.064,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.64771,
    "c": 0.13875,
    "h": 124
  },
  "luminance": 0.28342
}

Semantic roles & 50–950 ramp

primary
#7D9C2F
secondary
#826BBC
accent
#4BDD74
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101108
muted
#7F807B

Preview Lab

Preview with #7D9C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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