#7C981B#7C981B

#7C981B is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.6% C 0.146 H 122.3°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7C981B
RGBrgb(124, 152, 27)
HSLhsl(73, 70%, 35%)
HSVhsv(73, 82%, 60%)
CMYKcmyk(18.4%, 0%, 82.2%, 40.4%)
CIE-LABlab(58.81, -26.35, 56.54)
CIE-LCHlch(58.81, 62.38, 114.99°)
OKLaboklab(63.6% -0.0779 0.1233)
OKLCHoklch(63.6% 0.146 122.3)
XYZxyz(19.7386, 26.8206, 5.1737)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C981B #371B98
analogous
#98751B #7C981B #3E981B
triadic
#7C981B #1B7C98 #981B7C
tetradic
#7C981B #1B9875 #371B98 #981B3E
square
#7C981B #1B9875 #371B98 #981B3E
split-complementary
#7C981B #1B3E98 #751B98
monochromatic
#273009 #526412 #7C981B #A6CC24 #BFE04E

Accessibility & contrast

On white

3.30
#7C981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#7C981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C981B
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C981B#FFFFFF#000000##000000
##7C981B1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28E00
Deuteranopia (green-blind)
#9E8D29
Tritanopia (blue-blind)
#839081
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7c981b;
/* rgb */ color: rgb(124, 152, 27);
/* oklch */ color: oklch(63.6% 0.146 122.3);
Tailwind
colors: {
  custom: {
    50: '#a6b664',
    500: '#7c981b',
    950: '#000000',
  },
}
SCSS
$custom: #7c981b;
$custom-light: #a6b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7c981b",
  "rgb": {
    "r": 124,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 73.44,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63595,
    "c": 0.14584,
    "h": 122.3
  },
  "luminance": 0.26821
}

Semantic roles & 50–950 ramp

primary
#7C981B
secondary
#674DC2
accent
#3BED63
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7C981B

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

Preview Lab → · Contrast checker → · Palette generator →

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