#7D981B#7D981B

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

Color values

HEX#7D981B
RGBrgb(125, 152, 27)
HSLhsl(73, 70%, 35%)
HSVhsv(73, 82%, 60%)
CMYKcmyk(17.8%, 0%, 82.2%, 40.4%)
CIE-LABlab(58.88, -25.93, 56.63)
CIE-LCHlch(58.88, 62.28, 114.60°)
OKLaboklab(63.67% -0.0768 0.1235)
OKLCHoklch(63.67% 0.145 121.9)
XYZxyz(19.8839, 26.8955, 5.1805)
Luminance0.2690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D981B #361B98
analogous
#98741B #7D981B #3F981B
triadic
#7D981B #1B7D98 #981B7D
tetradic
#7D981B #1B9874 #361B98 #981B3F
square
#7D981B #1B9874 #361B98 #981B3F
split-complementary
#7D981B #1B3F98 #741B98
monochromatic
#283009 #526412 #7D981B #A8CC24 #C0E04E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D981B#FFFFFF#000000##000000
##7D981B1.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)
#9E8E28
Tritanopia (blue-blind)
#849082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7d981b;
/* rgb */ color: rgb(125, 152, 27);
/* oklch */ color: oklch(63.7% 0.145 121.9);
Tailwind
colors: {
  custom: {
    50: '#a6b664',
    500: '#7d981b',
    950: '#000000',
  },
}
SCSS
$custom: #7d981b;
$custom-light: #a6b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7d981b",
  "rgb": {
    "r": 125,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 72.96,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63669,
    "c": 0.14539,
    "h": 121.9
  },
  "luminance": 0.26896
}

Semantic roles & 50–950 ramp

primary
#7D981B
secondary
#664DC2
accent
#3BED62
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D981B

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

Preview Lab → · Contrast checker → · Palette generator →

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