#7B981D#7B981D

#7B981D is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.5% C 0.145 H 122.7°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7B981D
RGBrgb(123, 152, 29)
HSLhsl(74, 68%, 35%)
HSVhsv(74, 81%, 60%)
CMYKcmyk(19.1%, 0%, 80.9%, 40.4%)
CIE-LABlab(58.75, -26.70, 55.88)
CIE-LCHlch(58.75, 61.93, 115.53°)
OKLaboklab(63.53% -0.0786 0.1223)
OKLCHoklch(63.53% 0.145 122.7)
XYZxyz(19.6187, 26.7560, 5.2930)
Luminance0.2676 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B981D #3A1D98
analogous
#98771D #7B981D #3E981D
triadic
#7B981D #1D7B98 #981D7B
tetradic
#7B981D #1D9877 #3A1D98 #981D3E
square
#7B981D #1D9877 #3A1D98 #981D3E
split-complementary
#7B981D #1D3E98 #771D98
monochromatic
#283109 #516513 #7B981D #A5CB27 #BDDE52

Accessibility & contrast

On white

3.31
#7B981D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#7B981D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B981D
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B981D#FFFFFF#000000##000000
##7B981D1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#9E8D2A
Tritanopia (blue-blind)
#829082
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7b981d;
/* rgb */ color: rgb(123, 152, 29);
/* oklch */ color: oklch(63.5% 0.145 122.7);
Tailwind
colors: {
  custom: {
    50: '#a5b665',
    500: '#7b981d',
    950: '#000000',
  },
}
SCSS
$custom: #7b981d;
$custom-light: #a5b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7b981d",
  "rgb": {
    "r": 123,
    "g": 152,
    "b": 29
  },
  "hsl": {
    "h": 74.146,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.63531,
    "c": 0.14537,
    "h": 122.7
  },
  "luminance": 0.26756
}

Semantic roles & 50–950 ramp

primary
#7B981D
secondary
#6B50C1
accent
#3DEB66
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B981D

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

Preview Lab → · Contrast checker → · Palette generator →

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