#7E8011#7E8011

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

Color values

HEX#7E8011
RGBrgb(126, 128, 17)
HSLhsl(61, 77%, 28%)
HSVhsv(61, 87%, 50%)
CMYKcmyk(1.6%, 0%, 86.7%, 49.8%)
CIE-LABlab(51.74, -13.48, 53.15)
CIE-LCHlch(51.74, 54.83, 104.24°)
OKLaboklab(57.94% -0.0434 0.1142)
OKLCHoklch(57.94% 0.122 110.8)
XYZxyz(16.4252, 19.9149, 3.5089)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8011 #131180
analogous
#804A11 #7E8011 #468011
triadic
#7E8011 #117E80 #80117E
tetradic
#7E8011 #11804A #131180 #801146
square
#7E8011 #11804A #131180 #801146
split-complementary
#7E8011 #114680 #4A1180
monochromatic
#1B1B04 #494A0A #7E8011 #B3B618 #DFE329

Accessibility & contrast

On white

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

On black

4.98
#7E8011 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8011
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8011#FFFFFF#000000##000000
##7E80111.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8011;
/* rgb */ color: rgb(126, 128, 17);
/* oklch */ color: oklch(57.9% 0.122 110.8);
Tailwind
colors: {
  custom: {
    50: '#a7a45d',
    500: '#7e8011',
    950: '#000000',
  },
}
SCSS
$custom: #7e8011;
$custom-light: #a7a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8011",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 17
  },
  "hsl": {
    "h": 61.081,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.57936,
    "c": 0.12213,
    "h": 110.8
  },
  "luminance": 0.19914
}

Semantic roles & 50–950 ramp

primary
#7E8011
secondary
#3937B6
accent
#35F338
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8011

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

Preview Lab → · Contrast checker → · Palette generator →

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