#7E802D#7E802D

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

Color values

HEX#7E802D
RGBrgb(126, 128, 45)
HSLhsl(61, 48%, 34%)
HSVhsv(61, 65%, 50%)
CMYKcmyk(1.6%, 0%, 64.8%, 49.8%)
CIE-LABlab(51.91, -12.12, 43.29)
CIE-LCHlch(51.91, 44.95, 105.64°)
OKLaboklab(58.12% -0.0369 0.0984)
OKLCHoklch(58.12% 0.105 110.6)
XYZxyz(16.7975, 20.0638, 5.4700)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E802D #2F2D80
analogous
#80592D #7E802D #55802D
triadic
#7E802D #2D7E80 #802D7E
tetradic
#7E802D #2D8059 #2F2D80 #802D55
square
#7E802D #2D8059 #2F2D80 #802D55
split-complementary
#7E802D #2D5580 #592D80
monochromatic
#25250D #51531D #7E802D #ABAD3D #C5C760

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E802D#FFFFFF#000000##000000
##7E802D1.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)
#8A7A23
Deuteranopia (green-blind)
#8B7D32
Tritanopia (blue-blind)
#87786F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e802d;
/* rgb */ color: rgb(126, 128, 45);
/* oklch */ color: oklch(58.1% 0.105 110.6);
Tailwind
colors: {
  custom: {
    50: '#a6a46a',
    500: '#7e802d',
    950: '#000000',
  },
}
SCSS
$custom: #7e802d;
$custom-light: #a6a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e802d",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 61.446,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58124,
    "c": 0.10506,
    "h": 110.6
  },
  "luminance": 0.20063
}

Semantic roles & 50–950 ramp

primary
#7E802D
secondary
#5D5BAE
accent
#50D853
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E802D

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

Preview Lab → · Contrast checker → · Palette generator →

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