#7E9822#7E9822

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

Color values

HEX#7E9822
RGBrgb(126, 152, 34)
HSLhsl(73, 63%, 36%)
HSVhsv(73, 78%, 60%)
CMYKcmyk(17.1%, 0%, 77.6%, 40.4%)
CIE-LABlab(58.98, -25.20, 54.61)
CIE-LCHlch(58.98, 60.14, 114.77°)
OKLaboklab(63.78% -0.0743 0.1204)
OKLCHoklch(63.78% 0.141 121.7)
XYZxyz(20.1215, 27.0076, 5.6660)
Luminance0.2701 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9822 #3C2298
analogous
#987722 #7E9822 #439822
triadic
#7E9822 #227E98 #98227E
tetradic
#7E9822 #229877 #3C2298 #982243
square
#7E9822 #229877 #3C2298 #982243
split-complementary
#7E9822 #224398 #772298
monochromatic
#2B340C #556617 #7E9822 #A7CA2D #BEDA5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E9822#FFFFFF#000000##000000
##7E98221.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)
#A28E03
Deuteranopia (green-blind)
#9E8E2D
Tritanopia (blue-blind)
#859082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7e9822;
/* rgb */ color: rgb(126, 152, 34);
/* oklch */ color: oklch(63.8% 0.141 121.7);
Tailwind
colors: {
  custom: {
    50: '#a7b667',
    500: '#7e9822',
    950: '#000000',
  },
}
SCSS
$custom: #7e9822;
$custom-light: #a7b667;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9822",
  "rgb": {
    "r": 126,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 73.22,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63781,
    "c": 0.14145,
    "h": 121.7
  },
  "luminance": 0.27008
}

Semantic roles & 50–950 ramp

primary
#7E9822
secondary
#6E57BE
accent
#41E666
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9822

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

Preview Lab → · Contrast checker → · Palette generator →

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