#7E981B#7E981B

#7E981B is a light, vivid yellow-green. Relative luminance 0.270; OKLCH L 63.7% C 0.145 H 121.5°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7E981B
RGBrgb(126, 152, 27)
HSLhsl(72, 70%, 35%)
HSVhsv(72, 82%, 60%)
CMYKcmyk(17.1%, 0%, 82.2%, 40.4%)
CIE-LABlab(58.95, -25.50, 56.72)
CIE-LCHlch(58.95, 62.19, 114.21°)
OKLaboklab(63.74% -0.0757 0.1236)
OKLCHoklch(63.74% 0.145 121.5)
XYZxyz(20.0306, 26.9712, 5.1874)
Luminance0.2697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E981B #351B98
analogous
#98731B #7E981B #40981B
triadic
#7E981B #1B7E98 #981B7E
tetradic
#7E981B #1B9873 #351B98 #981B40
square
#7E981B #1B9873 #351B98 #981B40
split-complementary
#7E981B #1B4098 #731B98
monochromatic
#283009 #536412 #7E981B #A9CC24 #C1E04E

Accessibility & contrast

On white

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

On black

6.39
#7E981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E981B
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E981B#FFFFFF#000000##000000
##7E981B1.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e981b;
/* rgb */ color: rgb(126, 152, 27);
/* oklch */ color: oklch(63.7% 0.145 121.5);
Tailwind
colors: {
  custom: {
    50: '#a7b664',
    500: '#7e981b',
    950: '#000000',
  },
}
SCSS
$custom: #7e981b;
$custom-light: #a7b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7e981b",
  "rgb": {
    "r": 126,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 72.48,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63743,
    "c": 0.14493,
    "h": 121.5
  },
  "luminance": 0.26971
}

Semantic roles & 50–950 ramp

primary
#7E981B
secondary
#654DC2
accent
#3BED60
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E981B

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

Preview Lab → · Contrast checker → · Palette generator →

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