#7C802A#7C802A

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

Color values

HEX#7C802A
RGBrgb(124, 128, 42)
HSLhsl(63, 51%, 33%)
HSVhsv(63, 67%, 50%)
CMYKcmyk(3.1%, 0%, 67.2%, 49.8%)
CIE-LABlab(51.71, -13.23, 44.36)
CIE-LCHlch(51.71, 46.29, 106.61°)
OKLaboklab(57.92% -0.0402 0.1002)
OKLCHoklch(57.92% 0.108 111.9)
XYZxyz(16.4497, 19.8910, 5.1628)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C802A #2E2A80
analogous
#80592A #7C802A #51802A
triadic
#7C802A #2A7C80 #802A7C
tetradic
#7C802A #2A8059 #2E2A80 #802A51
square
#7C802A #2A8059 #2E2A80 #802A51
split-complementary
#7C802A #2A5180 #592A80
monochromatic
#23240C #4F521B #7C802A #A9AE39 #C4C95B

Accessibility & contrast

On white

4.22
#7C802A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C802A#FFFFFF#000000##000000
##7C802A1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1E
Deuteranopia (green-blind)
#8A7C30
Tritanopia (blue-blind)
#84786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c802a;
/* rgb */ color: rgb(124, 128, 42);
/* oklch */ color: oklch(57.9% 0.108 111.9);
Tailwind
colors: {
  custom: {
    50: '#a4a468',
    500: '#7c802a',
    950: '#000000',
  },
}
SCSS
$custom: #7c802a;
$custom-light: #a4a468;
$custom-dark: #000000;
JSON
{
  "hex": "#7c802a",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 62.791,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57918,
    "c": 0.10798,
    "h": 111.9
  },
  "luminance": 0.19891
}

Semantic roles & 50–950 ramp

primary
#7C802A
secondary
#5B57AF
accent
#4EDA54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C802A

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

Preview Lab → · Contrast checker → · Palette generator →

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