#7E8116#7E8116

#7E8116 is a mid, vivid yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.121 H 111.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E8116
RGBrgb(126, 129, 22)
HSLhsl(62, 71%, 30%)
HSVhsv(62, 83%, 51%)
CMYKcmyk(2.3%, 0%, 82.9%, 49.4%)
CIE-LABlab(52.06, -13.86, 52.08)
CIE-LCHlch(52.06, 53.89, 104.90°)
OKLaboklab(58.19% -0.044 0.1128)
OKLCHoklch(58.19% 0.121 111.3)
XYZxyz(16.5999, 20.1945, 3.7824)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8116 #191681
analogous
#814E16 #7E8116 #498116
triadic
#7E8116 #167E81 #81167E
tetradic
#7E8116 #16814E #191681 #811649
square
#7E8116 #16814E #191681 #811649
split-complementary
#7E8116 #164981 #4E1681
monochromatic
#1A1A04 #4B4D0D #7E8116 #B1B51F #D8DD35

Accessibility & contrast

On white

4.17
#7E8116 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7E8116 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8116
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8116#FFFFFF#000000##000000
##7E81161.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D20
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8116;
/* rgb */ color: rgb(126, 129, 22);
/* oklch */ color: oklch(58.2% 0.121 111.3);
Tailwind
colors: {
  custom: {
    50: '#a7a55f',
    500: '#7e8116',
    950: '#000000',
  },
}
SCSS
$custom: #7e8116;
$custom-light: #a7a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8116",
  "rgb": {
    "r": 126,
    "g": 129,
    "b": 22
  },
  "hsl": {
    "h": 61.682,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.58195,
    "c": 0.12108,
    "h": 111.3
  },
  "luminance": 0.20194
}

Semantic roles & 50–950 ramp

primary
#7E8116
secondary
#413DB6
accent
#3AEE3F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8116

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

Preview Lab → · Contrast checker → · Palette generator →

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