#7E9C2B#7E9C2B

#7E9C2B is a light, vivid yellow-green. Relative luminance 0.284; OKLCH L 64.8% C 0.141 H 123.4°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7E9C2B
RGBrgb(126, 156, 43)
HSLhsl(76, 57%, 39%)
HSVhsv(76, 72%, 61%)
CMYKcmyk(19.2%, 0%, 72.4%, 38.8%)
CIE-LABlab(60.24, -26.68, 52.63)
CIE-LCHlch(60.24, 59.01, 116.88°)
OKLaboklab(64.81% -0.0776 0.1177)
OKLCHoklch(64.81% 0.141 123.4)
XYZxyz(20.9289, 28.3868, 6.6616)
Luminance0.2839 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9C2B #492B9C
analogous
#9C822B #7E9C2B #469C2B
triadic
#7E9C2B #2B7E9C #9C2B7E
tetradic
#7E9C2B #2B9C82 #492B9C #9C2B46
square
#7E9C2B #2B9C82 #492B9C #9C2B46
split-complementary
#7E9C2B #2B469C #822B9C
monochromatic
#313C11 #576C1E #7E9C2B #A3C93B #BAD66B

Accessibility & contrast

On white

3.14
#7E9C2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#7E9C2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9C2B
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9C2B#FFFFFF#000000##000000
##7E9C2B1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59217
Deuteranopia (green-blind)
#A19135
Tritanopia (blue-blind)
#849486
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7e9c2b;
/* rgb */ color: rgb(126, 156, 43);
/* oklch */ color: oklch(64.8% 0.141 123.4);
Tailwind
colors: {
  custom: {
    50: '#a7b96c',
    500: '#7e9c2b',
    950: '#000000',
  },
}
SCSS
$custom: #7e9c2b;
$custom-light: #a7b96c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9c2b",
  "rgb": {
    "r": 126,
    "g": 156,
    "b": 43
  },
  "hsl": {
    "h": 75.929,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.64812,
    "c": 0.141,
    "h": 123.4
  },
  "luminance": 0.28387
}

Semantic roles & 50–950 ramp

primary
#7E9C2B
secondary
#7D66BD
accent
#48E070
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101107
muted
#7F807A

Preview Lab

Preview with #7E9C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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