#7D981F#7D981F

#7D981F is a light, vivid yellow-green. Relative luminance 0.269; OKLCH L 63.7% C 0.143 H 122.0°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7D981F
RGBrgb(125, 152, 31)
HSLhsl(73, 66%, 36%)
HSVhsv(73, 80%, 60%)
CMYKcmyk(17.8%, 0%, 79.6%, 40.4%)
CIE-LABlab(58.90, -25.76, 55.46)
CIE-LCHlch(58.90, 61.16, 114.91°)
OKLaboklab(63.69% -0.0761 0.1217)
OKLCHoklch(63.69% 0.143 122)
XYZxyz(19.9333, 26.9153, 5.4411)
Luminance0.2692 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D981F #3A1F98
analogous
#98761F #7D981F #41981F
triadic
#7D981F #1F7D98 #981F7D
tetradic
#7D981F #1F9876 #3A1F98 #981F41
square
#7D981F #1F9876 #3A1F98 #981F41
split-complementary
#7D981F #1F4198 #761F98
monochromatic
#29320A #536515 #7D981F #A7CB29 #BEDC55

Accessibility & contrast

On white

3.29
#7D981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#7D981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D981F
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D981F#FFFFFF#000000##000000
##7D981F1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28E00
Deuteranopia (green-blind)
#9E8E2B
Tritanopia (blue-blind)
#849082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7d981f;
/* rgb */ color: rgb(125, 152, 31);
/* oklch */ color: oklch(63.7% 0.143 122.0);
Tailwind
colors: {
  custom: {
    50: '#a6b666',
    500: '#7d981f',
    950: '#000000',
  },
}
SCSS
$custom: #7d981f;
$custom-light: #a6b666;
$custom-dark: #000000;
JSON
{
  "hex": "#7d981f",
  "rgb": {
    "r": 125,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 73.388,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63689,
    "c": 0.14347,
    "h": 122
  },
  "luminance": 0.26915
}

Semantic roles & 50–950 ramp

primary
#7D981F
secondary
#6B53C0
accent
#3FE965
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D981F

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

Preview Lab → · Contrast checker → · Palette generator →

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