#7B981E#7B981E

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

Color values

HEX#7B981E
RGBrgb(123, 152, 30)
HSLhsl(74, 67%, 36%)
HSVhsv(74, 80%, 60%)
CMYKcmyk(19.1%, 0%, 80.3%, 40.4%)
CIE-LABlab(58.75, -26.65, 55.59)
CIE-LCHlch(58.75, 61.65, 115.62°)
OKLaboklab(63.54% -0.0784 0.1218)
OKLCHoklch(63.54% 0.145 122.8)
XYZxyz(19.6312, 26.7611, 5.3592)
Luminance0.2676 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B981E #3B1E98
analogous
#98781E #7B981E #3E981E
triadic
#7B981E #1E7B98 #981E7B
tetradic
#7B981E #1E9878 #3B1E98 #981E3E
square
#7B981E #1E9878 #3B1E98 #981E3E
split-complementary
#7B981E #1E3E98 #781E98
monochromatic
#28320A #526514 #7B981E #A4CB28 #BCDD53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B981E#FFFFFF#000000##000000
##7B981E1.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)
#9E8D2B
Tritanopia (blue-blind)
#829082
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7b981e;
/* rgb */ color: rgb(123, 152, 30);
/* oklch */ color: oklch(63.5% 0.145 122.8);
Tailwind
colors: {
  custom: {
    50: '#a5b665',
    500: '#7b981e',
    950: '#000000',
  },
}
SCSS
$custom: #7b981e;
$custom-light: #a5b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7b981e",
  "rgb": {
    "r": 123,
    "g": 152,
    "b": 30
  },
  "hsl": {
    "h": 74.262,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63536,
    "c": 0.14489,
    "h": 122.8
  },
  "luminance": 0.26761
}

Semantic roles & 50–950 ramp

primary
#7B981E
secondary
#6C51C0
accent
#3EEA67
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B981E

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

Preview Lab → · Contrast checker → · Palette generator →

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