#7D9D1F#7D9D1F

#7D9D1F is a light, vivid yellow-green. Relative luminance 0.286; OKLCH L 64.9% C 0.150 H 123.6°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7D9D1F
RGBrgb(125, 157, 31)
HSLhsl(75, 67%, 37%)
HSVhsv(75, 80%, 62%)
CMYKcmyk(20.4%, 0%, 80.3%, 38.4%)
CIE-LABlab(60.40, -28.20, 56.84)
CIE-LCHlch(60.40, 63.45, 116.39°)
OKLaboklab(64.91% -0.0827 0.1246)
OKLCHoklch(64.91% 0.15 123.6)
XYZxyz(20.7620, 28.5727, 5.7173)
Luminance0.2857 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D9D1F #3F1F9D
analogous
#9D7E1F #7D9D1F #3E9D1F
triadic
#7D9D1F #1F7D9D #9D1F7D
tetradic
#7D9D1F #1F9D7E #3F1F9D #9D1F3E
square
#7D9D1F #1F9D7E #3F1F9D #9D1F3E
split-complementary
#7D9D1F #1F3E9D #7E1F9D
monochromatic
#2C370B #546A15 #7D9D1F #A6D029 #BCDE58

Accessibility & contrast

On white

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

On black

6.71
#7D9D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D9D1F
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D9D1F#FFFFFF#000000##000000
##7D9D1F1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69300
Deuteranopia (green-blind)
#A2912C
Tritanopia (blue-blind)
#849586
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #7d9d1f;
/* rgb */ color: rgb(125, 157, 31);
/* oklch */ color: oklch(64.9% 0.150 123.6);
Tailwind
colors: {
  custom: {
    50: '#a6ba67',
    500: '#7d9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d9d1f;
$custom-light: #a6ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#7d9d1f",
  "rgb": {
    "r": 125,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 75.238,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.64908,
    "c": 0.14952,
    "h": 123.6
  },
  "luminance": 0.28573
}

Semantic roles & 50–950 ramp

primary
#7D9D1F
secondary
#7156C2
accent
#3EEA6A
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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