#7E8020#7E8020

#7E8020 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.115 H 110.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7E8020
RGBrgb(126, 128, 32)
HSLhsl(61, 60%, 31%)
HSVhsv(61, 75%, 50%)
CMYKcmyk(1.6%, 0%, 75%, 49.8%)
CIE-LABlab(51.81, -12.90, 48.55)
CIE-LCHlch(51.81, 50.24, 104.88°)
OKLaboklab(58.02% -0.0405 0.1072)
OKLCHoklch(58.02% 0.115 110.7)
XYZxyz(16.5846, 19.9787, 4.3489)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8020 #222080
analogous
#805220 #7E8020 #4E8020
triadic
#7E8020 #207E80 #80207E
tetradic
#7E8020 #208052 #222080 #80204E
square
#7E8020 #208052 #222080 #80204E
split-complementary
#7E8020 #204E80 #522080
monochromatic
#1E1E08 #4E4F14 #7E8020 #AEB12C #CFD149

Accessibility & contrast

On white

4.20
#7E8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7E8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8020
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8020#FFFFFF#000000##000000
##7E80201.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0D
Deuteranopia (green-blind)
#8B7D28
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e8020;
/* rgb */ color: rgb(126, 128, 32);
/* oklch */ color: oklch(58.0% 0.115 110.7);
Tailwind
colors: {
  custom: {
    50: '#a6a463',
    500: '#7e8020',
    950: '#000000',
  },
}
SCSS
$custom: #7e8020;
$custom-light: #a6a463;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8020",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 61.25,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.58017,
    "c": 0.11459,
    "h": 110.7
  },
  "luminance": 0.19978
}

Semantic roles & 50–950 ramp

primary
#7E8020
secondary
#4B49B3
accent
#45E348
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8020

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

Preview Lab → · Contrast checker → · Palette generator →

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