#7E8916#7E8916

#7E8916 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.130 H 115.4°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7E8916
RGBrgb(126, 137, 22)
HSLhsl(66, 72%, 31%)
HSVhsv(66, 84%, 54%)
CMYKcmyk(8%, 0%, 83.9%, 46.3%)
CIE-LABlab(54.43, -18.09, 54.14)
CIE-LCHlch(54.43, 57.09, 108.48°)
OKLaboklab(60.1% -0.0557 0.1172)
OKLCHoklch(60.1% 0.13 115.4)
XYZxyz(17.6952, 22.3852, 4.1475)
Luminance0.2238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8916 #211689
analogous
#895A16 #7E8916 #448916
triadic
#7E8916 #167E89 #89167E
tetradic
#7E8916 #16895A #211689 #891644
square
#7E8916 #16895A #211689 #891644
split-complementary
#7E8916 #164489 #5A1689
monochromatic
#1D2005 #4E540E #7E8916 #AEBE1E #D0DF3A

Accessibility & contrast

On white

3.83
#7E8916 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7E8916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8916
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8916#FFFFFF#000000##000000
##7E89161.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#938322
Tritanopia (blue-blind)
#878075
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8916;
/* rgb */ color: rgb(126, 137, 22);
/* oklch */ color: oklch(60.1% 0.130 115.4);
Tailwind
colors: {
  custom: {
    50: '#a7ab60',
    500: '#7e8916',
    950: '#000000',
  },
}
SCSS
$custom: #7e8916;
$custom-light: #a7ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8916",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 22
  },
  "hsl": {
    "h": 65.739,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60101,
    "c": 0.12979,
    "h": 115.4
  },
  "luminance": 0.22385
}

Semantic roles & 50–950 ramp

primary
#7E8916
secondary
#4A3EBD
accent
#39EF4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8916

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

Preview Lab → · Contrast checker → · Palette generator →

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