#7E8716#7E8716

#7E8716 is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.128 H 114.5°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7E8716
RGBrgb(126, 135, 22)
HSLhsl(65, 72%, 31%)
HSVhsv(65, 84%, 53%)
CMYKcmyk(6.7%, 0%, 83.7%, 47.1%)
CIE-LABlab(53.84, -17.04, 53.63)
CIE-LCHlch(53.84, 56.27, 107.63°)
OKLaboklab(59.62% -0.0528 0.1161)
OKLCHoklch(59.62% 0.128 114.5)
XYZxyz(17.4135, 21.8218, 4.0536)
Luminance0.2182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8716 #1F1687
analogous
#875716 #7E8716 #458716
triadic
#7E8716 #167E87 #87167E
tetradic
#7E8716 #168757 #1F1687 #871645
square
#7E8716 #168757 #1F1687 #871645
split-complementary
#7E8716 #164587 #571687
monochromatic
#1C1E05 #4D520D #7E8716 #AFBC1F #D1DF39

Accessibility & contrast

On white

3.91
#7E8716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7E8716 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8716
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8716#FFFFFF#000000##000000
##7E87161.003.915.365.36
#FFFFFF3.911.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#877E73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8716;
/* rgb */ color: rgb(126, 135, 22);
/* oklch */ color: oklch(59.6% 0.128 114.5);
Tailwind
colors: {
  custom: {
    50: '#a7a960',
    500: '#7e8716',
    950: '#000000',
  },
}
SCSS
$custom: #7e8716;
$custom-light: #a7a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8716",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 64.779,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59622,
    "c": 0.12757,
    "h": 114.5
  },
  "luminance": 0.21821
}

Semantic roles & 50–950 ramp

primary
#7E8716
secondary
#483EBB
accent
#39EF48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8716

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

Preview Lab → · Contrast checker → · Palette generator →

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