#7E9C1B#7E9C1B

#7E9C1B is a light, vivid yellow-green. Relative luminance 0.283; OKLCH L 64.7% C 0.150 H 122.8°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7E9C1B
RGBrgb(126, 156, 27)
HSLhsl(74, 70%, 36%)
HSVhsv(74, 83%, 61%)
CMYKcmyk(19.2%, 0%, 82.7%, 38.8%)
CIE-LABlab(60.15, -27.46, 57.78)
CIE-LCHlch(60.15, 63.97, 115.42°)
OKLaboklab(64.72% -0.081 0.1259)
OKLCHoklch(64.72% 0.15 122.8)
XYZxyz(20.6908, 28.2916, 5.4075)
Luminance0.2829 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9C1B #391B9C
analogous
#9C791B #7E9C1B #3E9C1B
triadic
#7E9C1B #1B7E9C #9C1B7E
tetradic
#7E9C1B #1B9C79 #391B9C #9C1B3E
square
#7E9C1B #1B9C79 #391B9C #9C1B3E
split-complementary
#7E9C1B #1B3E9C #791B9C
monochromatic
#2A3409 #546812 #7E9C1B #A8D024 #BFE151

Accessibility & contrast

On white

3.15
#7E9C1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#7E9C1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9C1B
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9C1B#FFFFFF#000000##000000
##7E9C1B1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A29129
Tritanopia (blue-blind)
#859485
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7e9c1b;
/* rgb */ color: rgb(126, 156, 27);
/* oklch */ color: oklch(64.7% 0.150 122.8);
Tailwind
colors: {
  custom: {
    50: '#a7b965',
    500: '#7e9c1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e9c1b;
$custom-light: #a7b965;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9c1b",
  "rgb": {
    "r": 126,
    "g": 156,
    "b": 27
  },
  "hsl": {
    "h": 73.953,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.64716,
    "c": 0.14969,
    "h": 122.8
  },
  "luminance": 0.28292
}

Semantic roles & 50–950 ramp

primary
#7E9C1B
secondary
#6A4FC3
accent
#3BED64
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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