#7E9521#7E9521

#7E9521 is a light, vivid yellow-green. Relative luminance 0.260; OKLCH L 63.0% C 0.138 H 120.6°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7E9521
RGBrgb(126, 149, 33)
HSLhsl(72, 64%, 36%)
HSVhsv(72, 78%, 58%)
CMYKcmyk(15.4%, 0%, 77.9%, 41.6%)
CIE-LABlab(58.08, -23.76, 54.10)
CIE-LCHlch(58.08, 59.08, 113.71°)
OKLaboklab(63.05% -0.0705 0.1191)
OKLCHoklch(63.05% 0.138 120.6)
XYZxyz(19.6265, 26.0404, 5.4309)
Luminance0.2604 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9521 #382195
analogous
#957221 #7E9521 #449521
triadic
#7E9521 #217E95 #95217E
tetradic
#7E9521 #219572 #382195 #952144
square
#7E9521 #219572 #382195 #952144
split-complementary
#7E9521 #214495 #722195
monochromatic
#29310B #546316 #7E9521 #A8C72C #C0DA57

Accessibility & contrast

On white

3.38
#7E9521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#7E9521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9521
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9521#FFFFFF#000000##000000
##7E95211.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C02
Deuteranopia (green-blind)
#9C8C2C
Tritanopia (blue-blind)
#858D7F
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #7e9521;
/* rgb */ color: rgb(126, 149, 33);
/* oklch */ color: oklch(63.0% 0.138 120.6);
Tailwind
colors: {
  custom: {
    50: '#a7b466',
    500: '#7e9521',
    950: '#000000',
  },
}
SCSS
$custom: #7e9521;
$custom-light: #a7b466;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9521",
  "rgb": {
    "r": 126,
    "g": 149,
    "b": 33
  },
  "hsl": {
    "h": 71.897,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63048,
    "c": 0.13836,
    "h": 120.6
  },
  "luminance": 0.2604
}

Semantic roles & 50–950 ramp

primary
#7E9521
secondary
#6954BE
accent
#41E762
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9521

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

Preview Lab → · Contrast checker → · Palette generator →

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