#7A981C#7A981C

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

Color values

HEX#7A981C
RGBrgb(122, 152, 28)
HSLhsl(75, 69%, 35%)
HSVhsv(75, 82%, 60%)
CMYKcmyk(19.7%, 0%, 81.6%, 40.4%)
CIE-LABlab(58.67, -27.16, 56.08)
CIE-LCHlch(58.67, 62.31, 115.84°)
OKLaboklab(63.45% -0.0799 0.1226)
OKLCHoklch(63.45% 0.146 123.1)
XYZxyz(19.4642, 26.6778, 5.2223)
Luminance0.2668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A981C #3A1C98
analogous
#98781C #7A981C #3C981C
triadic
#7A981C #1C7A98 #981C7A
tetradic
#7A981C #1C9878 #3A1C98 #981C3C
square
#7A981C #1C9878 #3A1C98 #981C3C
split-complementary
#7A981C #1C3C98 #781C98
monochromatic
#273109 #516412 #7A981C #A3CC26 #BCDF50

Accessibility & contrast

On white

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

On black

6.34
#7A981C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A981C
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A981C#FFFFFF#000000##000000
##7A981C1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a981c;
/* rgb */ color: rgb(122, 152, 28);
/* oklch */ color: oklch(63.5% 0.146 123.1);
Tailwind
colors: {
  custom: {
    50: '#a4b665',
    500: '#7a981c',
    950: '#000000',
  },
}
SCSS
$custom: #7a981c;
$custom-light: #a4b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7a981c",
  "rgb": {
    "r": 122,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 74.516,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63453,
    "c": 0.14631,
    "h": 123.1
  },
  "luminance": 0.26678
}

Semantic roles & 50–950 ramp

primary
#7A981C
secondary
#6A4EC1
accent
#3CEC67
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7A981C

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

Preview Lab → · Contrast checker → · Palette generator →

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