#7B981A#7B981A

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

Color values

HEX#7B981A
RGBrgb(123, 152, 26)
HSLhsl(74, 71%, 35%)
HSVhsv(74, 83%, 60%)
CMYKcmyk(19.1%, 0%, 82.9%, 40.4%)
CIE-LABlab(58.73, -26.82, 56.73)
CIE-LCHlch(58.73, 62.74, 115.30°)
OKLaboklab(63.52% -0.0792 0.1236)
OKLCHoklch(63.52% 0.147 122.7)
XYZxyz(19.5834, 26.7419, 5.1071)
Luminance0.2674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B981A #371A98
analogous
#98761A #7B981A #3C981A
triadic
#7B981A #1A7B98 #981A7B
tetradic
#7B981A #1A9876 #371A98 #981A3C
square
#7B981A #1A9876 #371A98 #981A3C
split-complementary
#7B981A #1A3C98 #761A98
monochromatic
#262F08 #516411 #7B981A #A5CC23 #BEE04C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B981A#FFFFFF#000000##000000
##7B981A1.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)
#9E8D28
Tritanopia (blue-blind)
#829081
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7b981a;
/* rgb */ color: rgb(123, 152, 26);
/* oklch */ color: oklch(63.5% 0.147 122.7);
Tailwind
colors: {
  custom: {
    50: '#a5b664',
    500: '#7b981a',
    950: '#000000',
  },
}
SCSS
$custom: #7b981a;
$custom-light: #a5b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7b981a",
  "rgb": {
    "r": 123,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 73.81,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63516,
    "c": 0.14674,
    "h": 122.7
  },
  "luminance": 0.26742
}

Semantic roles & 50–950 ramp

primary
#7B981A
secondary
#674BC2
accent
#3AEE64
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B981A

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

Preview Lab → · Contrast checker → · Palette generator →

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