#7E9C1C#7E9C1C

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

Color values

HEX#7E9C1C
RGBrgb(126, 156, 28)
HSLhsl(74, 70%, 36%)
HSVhsv(74, 82%, 61%)
CMYKcmyk(19.2%, 0%, 82.1%, 38.8%)
CIE-LABlab(60.16, -27.42, 57.51)
CIE-LCHlch(60.16, 63.71, 115.49°)
OKLaboklab(64.72% -0.0808 0.1255)
OKLCHoklch(64.72% 0.149 122.8)
XYZxyz(20.7026, 28.2963, 5.4694)
Luminance0.2830 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9C1C #3A1C9C
analogous
#9C7A1C #7E9C1C #3E9C1C
triadic
#7E9C1C #1C7E9C #9C1C7E
tetradic
#7E9C1C #1C9C7A #3A1C9C #9C1C3E
square
#7E9C1C #1C9C7A #3A1C9C #9C1C3E
split-complementary
#7E9C1C #1C3E9C #7A1C9C
monochromatic
#2A3409 #546813 #7E9C1C #A8D025 #BFE052

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E9C1C#FFFFFF#000000##000000
##7E9C1C1.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)
#A2912A
Tritanopia (blue-blind)
#859485
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7e9c1c;
/* rgb */ color: rgb(126, 156, 28);
/* oklch */ color: oklch(64.7% 0.149 122.8);
Tailwind
colors: {
  custom: {
    50: '#a7b965',
    500: '#7e9c1c',
    950: '#000000',
  },
}
SCSS
$custom: #7e9c1c;
$custom-light: #a7b965;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9c1c",
  "rgb": {
    "r": 126,
    "g": 156,
    "b": 28
  },
  "hsl": {
    "h": 74.063,
    "s": 69.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.64721,
    "c": 0.14925,
    "h": 122.8
  },
  "luminance": 0.28296
}

Semantic roles & 50–950 ramp

primary
#7E9C1C
secondary
#6C51C3
accent
#3BEC65
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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