#7E9918#7E9918

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

Color values

HEX#7E9918
RGBrgb(126, 153, 24)
HSLhsl(73, 73%, 35%)
HSVhsv(73, 84%, 60%)
CMYKcmyk(17.6%, 0%, 84.3%, 40%)
CIE-LABlab(59.24, -26.11, 57.77)
CIE-LCHlch(59.24, 63.40, 114.32°)
OKLaboklab(63.97% -0.0775 0.1254)
OKLCHoklch(63.97% 0.147 121.7)
XYZxyz(20.1606, 27.2840, 5.0682)
Luminance0.2728 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9918 #331899
analogous
#997318 #7E9918 #3E9918
triadic
#7E9918 #187E99 #99187E
tetradic
#7E9918 #189973 #331899 #99183E
square
#7E9918 #189973 #331899 #99183E
split-complementary
#7E9918 #183E99 #731899
monochromatic
#272F07 #526410 #7E9918 #AACE20 #C2E249

Accessibility & contrast

On white

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

On black

6.46
#7E9918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9918
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9918#FFFFFF#000000##000000
##7E99181.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e9918;
/* rgb */ color: rgb(126, 153, 24);
/* oklch */ color: oklch(64.0% 0.147 121.7);
Tailwind
colors: {
  custom: {
    50: '#a7b763',
    500: '#7e9918',
    950: '#000000',
  },
}
SCSS
$custom: #7e9918;
$custom-light: #a7b763;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9918",
  "rgb": {
    "r": 126,
    "g": 153,
    "b": 24
  },
  "hsl": {
    "h": 72.558,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.63973,
    "c": 0.1474,
    "h": 121.7
  },
  "luminance": 0.27284
}

Semantic roles & 50–950 ramp

primary
#7E9918
secondary
#6349C4
accent
#38F05F
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9918

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

Preview Lab → · Contrast checker → · Palette generator →

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