#7E802A#7E802A

#7E802A is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.1% C 0.107 H 110.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7E802A
RGBrgb(126, 128, 42)
HSLhsl(61, 51%, 33%)
HSVhsv(61, 67%, 50%)
CMYKcmyk(1.6%, 0%, 67.2%, 49.8%)
CIE-LABlab(51.88, -12.32, 44.59)
CIE-LCHlch(51.88, 46.26, 105.45°)
OKLaboklab(58.1% -0.0378 0.1006)
OKLCHoklch(58.1% 0.108 110.6)
XYZxyz(16.7418, 20.0416, 5.1765)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E802A #2C2A80
analogous
#80572A #7E802A #53802A
triadic
#7E802A #2A7E80 #802A7E
tetradic
#7E802A #2A8057 #2C2A80 #802A53
square
#7E802A #2A8057 #2C2A80 #802A53
split-complementary
#7E802A #2A5380 #572A80
monochromatic
#23240C #51521B #7E802A #ABAE39 #C7C95B

Accessibility & contrast

On white

4.19
#7E802A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7E802A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E802A
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E802A#FFFFFF#000000##000000
##7E802A1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e802a;
/* rgb */ color: rgb(126, 128, 42);
/* oklch */ color: oklch(58.1% 0.107 110.6);
Tailwind
colors: {
  custom: {
    50: '#a6a469',
    500: '#7e802a',
    950: '#000000',
  },
}
SCSS
$custom: #7e802a;
$custom-light: #a6a469;
$custom-dark: #000000;
JSON
{
  "hex": "#7e802a",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 61.395,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58096,
    "c": 0.1075,
    "h": 110.6
  },
  "luminance": 0.20041
}

Semantic roles & 50–950 ramp

primary
#7E802A
secondary
#5957AF
accent
#4EDA51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E802A

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

Preview Lab → · Contrast checker → · Palette generator →

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