#7C802E#7C802E

#7C802E is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.0% C 0.105 H 111.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7C802E
RGBrgb(124, 128, 46)
HSLhsl(63, 47%, 34%)
HSVhsv(63, 64%, 50%)
CMYKcmyk(3.1%, 0%, 64.1%, 49.8%)
CIE-LABlab(51.75, -12.95, 42.61)
CIE-LCHlch(51.75, 44.54, 106.91°)
OKLaboklab(57.96% -0.039 0.0971)
OKLCHoklch(57.96% 0.105 111.9)
XYZxyz(16.5249, 19.9211, 5.5589)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C802E #322E80
analogous
#805B2E #7C802E #53802E
triadic
#7C802E #2E7C80 #802E7C
tetradic
#7C802E #2E805B #322E80 #802E53
square
#7C802E #2E805B #322E80 #802E53
split-complementary
#7C802E #2E5380 #5B2E80
monochromatic
#25260E #50531E #7C802E #A8AD3E #C2C762

Accessibility & contrast

On white

4.21
#7C802E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7C802E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C802E
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C802E#FFFFFF#000000##000000
##7C802E1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A24
Deuteranopia (green-blind)
#8A7C33
Tritanopia (blue-blind)
#84786F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c802e;
/* rgb */ color: rgb(124, 128, 46);
/* oklch */ color: oklch(58.0% 0.105 111.9);
Tailwind
colors: {
  custom: {
    50: '#a4a46b',
    500: '#7c802e',
    950: '#000000',
  },
}
SCSS
$custom: #7c802e;
$custom-light: #a4a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c802e",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 62.927,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57956,
    "c": 0.10468,
    "h": 111.9
  },
  "luminance": 0.19921
}

Semantic roles & 50–950 ramp

primary
#7C802E
secondary
#615DAD
accent
#51D758
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C802E

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

Preview Lab → · Contrast checker → · Palette generator →

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