#7E9921#7E9921

#7E9921 is a light, vivid yellow-green. Relative luminance 0.273; OKLCH L 64.0% C 0.143 H 122.0°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#7E9921
RGBrgb(126, 153, 33)
HSLhsl(74, 65%, 36%)
HSVhsv(74, 78%, 60%)
CMYKcmyk(17.6%, 0%, 78.4%, 40%)
CIE-LABlab(59.28, -25.74, 55.21)
CIE-LCHlch(59.28, 60.91, 115.00°)
OKLaboklab(64.02% -0.0759 0.1214)
OKLCHoklch(64.02% 0.143 122)
XYZxyz(20.2703, 27.3279, 5.6455)
Luminance0.2733 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9921 #3C2199
analogous
#997821 #7E9921 #429921
triadic
#7E9921 #217E99 #99217E
tetradic
#7E9921 #219978 #3C2199 #992142
square
#7E9921 #219978 #3C2199 #992142
split-complementary
#7E9921 #214299 #782199
monochromatic
#2B340B #556716 #7E9921 #A7CB2C #BEDB59

Accessibility & contrast

On white

3.25
#7E9921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#7E9921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9921
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9921#FFFFFF#000000##000000
##7E99211.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F00
Deuteranopia (green-blind)
#9F8F2D
Tritanopia (blue-blind)
#859183
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #7e9921;
/* rgb */ color: rgb(126, 153, 33);
/* oklch */ color: oklch(64.0% 0.143 122.0);
Tailwind
colors: {
  custom: {
    50: '#a7b767',
    500: '#7e9921',
    950: '#000000',
  },
}
SCSS
$custom: #7e9921;
$custom-light: #a7b767;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9921",
  "rgb": {
    "r": 126,
    "g": 153,
    "b": 33
  },
  "hsl": {
    "h": 73.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64018,
    "c": 0.1432,
    "h": 122
  },
  "luminance": 0.27328
}

Semantic roles & 50–950 ramp

primary
#7E9921
secondary
#6E56BF
accent
#40E866
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9921

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

Preview Lab → · Contrast checker → · Palette generator →

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