#7D9C1F#7D9C1F

#7D9C1F is a light, vivid yellow-green. Relative luminance 0.282; OKLCH L 64.7% C 0.148 H 123.3°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7D9C1F
RGBrgb(125, 156, 31)
HSLhsl(75, 67%, 37%)
HSVhsv(75, 80%, 61%)
CMYKcmyk(19.9%, 0%, 80.1%, 38.8%)
CIE-LABlab(60.10, -27.71, 56.56)
CIE-LCHlch(60.10, 62.99, 116.10°)
OKLaboklab(64.66% -0.0814 0.124)
OKLCHoklch(64.66% 0.148 123.3)
XYZxyz(20.5935, 28.2357, 5.6612)
Luminance0.2824 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D9C1F #3E1F9C
analogous
#9C7D1F #7D9C1F #3F9C1F
triadic
#7D9C1F #1F7D9C #9C1F7D
tetradic
#7D9C1F #1F9C7D #3E1F9C #9C1F3F
square
#7D9C1F #1F9C7D #3E1F9C #9C1F3F
split-complementary
#7D9C1F #1F3F9C #7D1F9C
monochromatic
#2B360B #546915 #7D9C1F #A6CF29 #BCDE58

Accessibility & contrast

On white

3.16
#7D9C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#7D9C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D9C1F
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D9C1F#FFFFFF#000000##000000
##7D9C1F1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59200
Deuteranopia (green-blind)
#A1912C
Tritanopia (blue-blind)
#849485
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7d9c1f;
/* rgb */ color: rgb(125, 156, 31);
/* oklch */ color: oklch(64.7% 0.148 123.3);
Tailwind
colors: {
  custom: {
    50: '#a6b966',
    500: '#7d9c1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d9c1f;
$custom-light: #a6b966;
$custom-dark: #000000;
JSON
{
  "hex": "#7d9c1f",
  "rgb": {
    "r": 125,
    "g": 156,
    "b": 31
  },
  "hsl": {
    "h": 74.88,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.64664,
    "c": 0.14831,
    "h": 123.3
  },
  "luminance": 0.28236
}

Semantic roles & 50–950 ramp

primary
#7D9C1F
secondary
#7055C1
accent
#3EEA69
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D9C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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