#7A981B#7A981B

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

Color values

HEX#7A981B
RGBrgb(122, 152, 27)
HSLhsl(74, 70%, 35%)
HSVhsv(74, 82%, 60%)
CMYKcmyk(19.7%, 0%, 82.2%, 40.4%)
CIE-LABlab(58.67, -27.20, 56.37)
CIE-LCHlch(58.67, 62.58, 115.76°)
OKLaboklab(63.45% -0.0801 0.123)
OKLCHoklch(63.45% 0.147 123.1)
XYZxyz(19.4524, 26.6731, 5.1603)
Luminance0.2667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A981B #391B98
analogous
#98771B #7A981B #3C981B
triadic
#7A981B #1B7A98 #981B7A
tetradic
#7A981B #1B9877 #391B98 #981B3C
square
#7A981B #1B9877 #391B98 #981B3C
split-complementary
#7A981B #1B3C98 #771B98
monochromatic
#273009 #506412 #7A981B #A4CC24 #BDE04E

Accessibility & contrast

On white

3.32
#7A981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#7A981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A981B
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A981B#FFFFFF#000000##000000
##7A981B1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a981b;
/* rgb */ color: rgb(122, 152, 27);
/* oklch */ color: oklch(63.4% 0.147 123.1);
Tailwind
colors: {
  custom: {
    50: '#a4b664',
    500: '#7a981b',
    950: '#000000',
  },
}
SCSS
$custom: #7a981b;
$custom-light: #a4b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7a981b",
  "rgb": {
    "r": 122,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 74.4,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63448,
    "c": 0.14677,
    "h": 123.1
  },
  "luminance": 0.26673
}

Semantic roles & 50–950 ramp

primary
#7A981B
secondary
#694DC2
accent
#3BED66
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7A981B

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

Preview Lab → · Contrast checker → · Palette generator →

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