#7E8016#7E8016

#7E8016 is a mid, vivid yellow. Relative luminance 0.199; OKLCH L 58.0% C 0.120 H 110.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7E8016
RGBrgb(126, 128, 22)
HSLhsl(61, 71%, 29%)
HSVhsv(61, 83%, 50%)
CMYKcmyk(1.6%, 0%, 82.8%, 49.8%)
CIE-LABlab(51.76, -13.32, 51.82)
CIE-LCHlch(51.76, 53.51, 104.42°)
OKLaboklab(57.96% -0.0426 0.1122)
OKLCHoklch(57.96% 0.12 110.8)
XYZxyz(16.4688, 19.9324, 3.7387)
Luminance0.1993 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8016 #181680
analogous
#804D16 #7E8016 #498016
triadic
#7E8016 #167E80 #80167E
tetradic
#7E8016 #16804D #181680 #801649
square
#7E8016 #16804D #181680 #801649
split-complementary
#7E8016 #164980 #4D1680
monochromatic
#1A1A04 #4B4C0D #7E8016 #B1B41F #D9DC34

Accessibility & contrast

On white

4.21
#7E8016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7E8016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8016
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8016#FFFFFF#000000##000000
##7E80161.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D20
Tritanopia (blue-blind)
#87776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e8016;
/* rgb */ color: rgb(126, 128, 22);
/* oklch */ color: oklch(58.0% 0.120 110.8);
Tailwind
colors: {
  custom: {
    50: '#a7a45f',
    500: '#7e8016',
    950: '#000000',
  },
}
SCSS
$custom: #7e8016;
$custom-light: #a7a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8016",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 61.132,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57958,
    "c": 0.12002,
    "h": 110.8
  },
  "luminance": 0.19932
}

Semantic roles & 50–950 ramp

primary
#7E8016
secondary
#3F3DB5
accent
#3AED3E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8016

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

Preview Lab → · Contrast checker → · Palette generator →

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