#7E981F#7E981F

#7E981F is a light, vivid yellow-green. Relative luminance 0.270; OKLCH L 63.8% C 0.143 H 121.6°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7E981F
RGBrgb(126, 152, 31)
HSLhsl(73, 66%, 36%)
HSVhsv(73, 80%, 60%)
CMYKcmyk(17.1%, 0%, 79.6%, 40.4%)
CIE-LABlab(58.97, -25.34, 55.55)
CIE-LCHlch(58.97, 61.06, 114.52°)
OKLaboklab(63.76% -0.0749 0.1218)
OKLCHoklch(63.76% 0.143 121.6)
XYZxyz(20.0801, 26.9910, 5.4480)
Luminance0.2699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E981F #391F98
analogous
#98751F #7E981F #41981F
triadic
#7E981F #1F7E98 #981F7E
tetradic
#7E981F #1F9875 #391F98 #981F41
square
#7E981F #1F9875 #391F98 #981F41
split-complementary
#7E981F #1F4198 #751F98
monochromatic
#2A320A #546515 #7E981F #A8CB29 #BFDC55

Accessibility & contrast

On white

3.28
#7E981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#7E981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E981F
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E981F#FFFFFF#000000##000000
##7E981F1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28E00
Deuteranopia (green-blind)
#9E8E2B
Tritanopia (blue-blind)
#859082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7e981f;
/* rgb */ color: rgb(126, 152, 31);
/* oklch */ color: oklch(63.8% 0.143 121.6);
Tailwind
colors: {
  custom: {
    50: '#a7b666',
    500: '#7e981f',
    950: '#000000',
  },
}
SCSS
$custom: #7e981f;
$custom-light: #a7b666;
$custom-dark: #000000;
JSON
{
  "hex": "#7e981f",
  "rgb": {
    "r": 126,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 72.893,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63764,
    "c": 0.14302,
    "h": 121.6
  },
  "luminance": 0.26991
}

Semantic roles & 50–950 ramp

primary
#7E981F
secondary
#6A53C0
accent
#3FE963
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E981F

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

Preview Lab → · Contrast checker → · Palette generator →

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