#7B981F#7B981F

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

Color values

HEX#7B981F
RGBrgb(123, 152, 31)
HSLhsl(74, 66%, 36%)
HSVhsv(74, 80%, 60%)
CMYKcmyk(19.1%, 0%, 79.6%, 40.4%)
CIE-LABlab(58.76, -26.61, 55.29)
CIE-LCHlch(58.76, 61.36, 115.70°)
OKLaboklab(63.54% -0.0782 0.1214)
OKLCHoklch(63.54% 0.144 122.8)
XYZxyz(19.6442, 26.7663, 5.4276)
Luminance0.2677 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B981F #3C1F98
analogous
#98781F #7B981F #3E981F
triadic
#7B981F #1F7B98 #981F7B
tetradic
#7B981F #1F9878 #3C1F98 #981F3E
square
#7B981F #1F9878 #3C1F98 #981F3E
split-complementary
#7B981F #1F3E98 #781F98
monochromatic
#29320A #526515 #7B981F #A4CB29 #BCDC55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B981F#FFFFFF#000000##000000
##7B981F1.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: #7b981f;
/* rgb */ color: rgb(123, 152, 31);
/* oklch */ color: oklch(63.5% 0.144 122.8);
Tailwind
colors: {
  custom: {
    50: '#a5b666',
    500: '#7b981f',
    950: '#000000',
  },
}
SCSS
$custom: #7b981f;
$custom-light: #a5b666;
$custom-dark: #000000;
JSON
{
  "hex": "#7b981f",
  "rgb": {
    "r": 123,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 74.38,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63542,
    "c": 0.14439,
    "h": 122.8
  },
  "luminance": 0.26766
}

Semantic roles & 50–950 ramp

primary
#7B981F
secondary
#6D53C0
accent
#3FE968
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B981F

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

Preview Lab → · Contrast checker → · Palette generator →

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