#7A981F#7A981F

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

Color values

HEX#7A981F
RGBrgb(122, 152, 31)
HSLhsl(75, 66%, 36%)
HSVhsv(75, 80%, 60%)
CMYKcmyk(19.7%, 0%, 79.6%, 40.4%)
CIE-LABlab(58.69, -27.03, 55.20)
CIE-LCHlch(58.69, 61.46, 116.09°)
OKLaboklab(63.47% -0.0793 0.1212)
OKLCHoklch(63.47% 0.145 123.2)
XYZxyz(19.5019, 26.6929, 5.4209)
Luminance0.2669 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A981F #3D1F98
analogous
#98791F #7A981F #3D981F
triadic
#7A981F #1F7A98 #981F7A
tetradic
#7A981F #1F9879 #3D1F98 #981F3D
square
#7A981F #1F9879 #3D1F98 #981F3D
split-complementary
#7A981F #1F3D98 #791F98
monochromatic
#28320A #516515 #7A981F #A3CB29 #BBDC55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A981F#FFFFFF#000000##000000
##7A981F1.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)
#9D8D2B
Tritanopia (blue-blind)
#819082
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7a981f;
/* rgb */ color: rgb(122, 152, 31);
/* oklch */ color: oklch(63.5% 0.145 123.2);
Tailwind
colors: {
  custom: {
    50: '#a4b666',
    500: '#7a981f',
    950: '#000000',
  },
}
SCSS
$custom: #7a981f;
$custom-light: #a4b666;
$custom-dark: #000000;
JSON
{
  "hex": "#7a981f",
  "rgb": {
    "r": 122,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 74.876,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63469,
    "c": 0.14486,
    "h": 123.2
  },
  "luminance": 0.26693
}

Semantic roles & 50–950 ramp

primary
#7A981F
secondary
#6E53C0
accent
#3FE969
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7A981F

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

Preview Lab → · Contrast checker → · Palette generator →

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