#7E802E#7E802E

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

Color values

HEX#7E802E
RGBrgb(126, 128, 46)
HSLhsl(61, 47%, 34%)
HSVhsv(61, 64%, 50%)
CMYKcmyk(1.6%, 0%, 64.1%, 49.8%)
CIE-LABlab(51.92, -12.05, 42.84)
CIE-LCHlch(51.92, 44.51, 105.71°)
OKLaboklab(58.13% -0.0366 0.0976)
OKLCHoklch(58.13% 0.104 110.6)
XYZxyz(16.8170, 20.0716, 5.5726)
Luminance0.2007 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E802E #302E80
analogous
#80592E #7E802E #55802E
triadic
#7E802E #2E7E80 #802E7E
tetradic
#7E802E #2E8059 #302E80 #802E55
square
#7E802E #2E8059 #302E80 #802E55
split-complementary
#7E802E #2E5580 #592E80
monochromatic
#25260E #52531E #7E802E #AAAD3E #C4C762

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E802E#FFFFFF#000000##000000
##7E802E1.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)
#8A7A24
Deuteranopia (green-blind)
#8B7D33
Tritanopia (blue-blind)
#87786F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e802e;
/* rgb */ color: rgb(126, 128, 46);
/* oklch */ color: oklch(58.1% 0.104 110.6);
Tailwind
colors: {
  custom: {
    50: '#a6a46b',
    500: '#7e802e',
    950: '#000000',
  },
}
SCSS
$custom: #7e802e;
$custom-light: #a6a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e802e",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 61.463,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58134,
    "c": 0.10422,
    "h": 110.6
  },
  "luminance": 0.20071
}

Semantic roles & 50–950 ramp

primary
#7E802E
secondary
#5F5DAD
accent
#51D754
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E802E

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

Preview Lab → · Contrast checker → · Palette generator →

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