#7D9A1F#7D9A1F

#7D9A1F is a light, vivid yellow-green. Relative luminance 0.276; OKLCH L 64.2% C 0.146 H 122.7°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7D9A1F
RGBrgb(125, 154, 31)
HSLhsl(74, 66%, 36%)
HSVhsv(74, 80%, 60%)
CMYKcmyk(18.8%, 0%, 79.9%, 39.6%)
CIE-LABlab(59.50, -26.74, 56.01)
CIE-LCHlch(59.50, 62.07, 115.52°)
OKLaboklab(64.18% -0.0787 0.1228)
OKLCHoklch(64.18% 0.146 122.7)
XYZxyz(20.2607, 27.5700, 5.5502)
Luminance0.2757 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D9A1F #3C1F9A
analogous
#9A7A1F #7D9A1F #409A1F
triadic
#7D9A1F #1F7D9A #9A1F7D
tetradic
#7D9A1F #1F9A7A #3C1F9A #9A1F40
square
#7D9A1F #1F9A7A #3C1F9A #9A1F40
split-complementary
#7D9A1F #1F409A #7A1F9A
monochromatic
#2A340A #546715 #7D9A1F #A6CD29 #BDDD56

Accessibility & contrast

On white

3.22
#7D9A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#7D9A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D9A1F
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D9A1F#FFFFFF#000000##000000
##7D9A1F1.003.226.516.51
#FFFFFF3.221.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#A08F2C
Tritanopia (blue-blind)
#849283
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #7d9a1f;
/* rgb */ color: rgb(125, 154, 31);
/* oklch */ color: oklch(64.2% 0.146 122.7);
Tailwind
colors: {
  custom: {
    50: '#a6b766',
    500: '#7d9a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d9a1f;
$custom-light: #a6b766;
$custom-dark: #000000;
JSON
{
  "hex": "#7d9a1f",
  "rgb": {
    "r": 125,
    "g": 154,
    "b": 31
  },
  "hsl": {
    "h": 74.146,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64176,
    "c": 0.1459,
    "h": 122.7
  },
  "luminance": 0.2757
}

Semantic roles & 50–950 ramp

primary
#7D9A1F
secondary
#6E54C1
accent
#3EE967
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D9A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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