#7E802C#7E802C

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

Color values

HEX#7E802C
RGBrgb(126, 128, 44)
HSLhsl(61, 49%, 34%)
HSVhsv(61, 66%, 50%)
CMYKcmyk(1.6%, 0%, 65.6%, 49.8%)
CIE-LABlab(51.90, -12.19, 43.73)
CIE-LCHlch(51.90, 45.39, 105.58°)
OKLaboklab(58.12% -0.0372 0.0991)
OKLCHoklch(58.12% 0.106 110.6)
XYZxyz(16.7785, 20.0562, 5.3698)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E802C #2E2C80
analogous
#80582C #7E802C #54802C
triadic
#7E802C #2C7E80 #802C7E
tetradic
#7E802C #2C8058 #2E2C80 #802C54
square
#7E802C #2C8058 #2E2C80 #802C54
split-complementary
#7E802C #2C5480 #582C80
monochromatic
#24250D #51521C #7E802C #ABAE3C #C5C85F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E802C#FFFFFF#000000##000000
##7E802C1.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)
#8A7A21
Deuteranopia (green-blind)
#8B7D31
Tritanopia (blue-blind)
#87786F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e802c;
/* rgb */ color: rgb(126, 128, 44);
/* oklch */ color: oklch(58.1% 0.106 110.6);
Tailwind
colors: {
  custom: {
    50: '#a6a46a',
    500: '#7e802c',
    950: '#000000',
  },
}
SCSS
$custom: #7e802c;
$custom-light: #a6a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e802c",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 61.429,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58115,
    "c": 0.10589,
    "h": 110.6
  },
  "luminance": 0.20056
}

Semantic roles & 50–950 ramp

primary
#7E802C
secondary
#5C5AAE
accent
#4FD853
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E802C

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

Preview Lab → · Contrast checker → · Palette generator →

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