#7C781A#7C781A

#7C781A is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.9% C 0.110 H 106.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7C781A
RGBrgb(124, 120, 26)
HSLhsl(58, 65%, 29%)
HSVhsv(58, 79%, 49%)
CMYKcmyk(0%, 3.2%, 79%, 51.4%)
CIE-LABlab(49.24, -9.74, 48.24)
CIE-LCHlch(49.24, 49.21, 101.41°)
OKLaboklab(55.91% -0.0321 0.1054)
OKLCHoklch(55.91% 0.11 106.9)
XYZxyz(15.2157, 17.7932, 3.6100)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C781A #1A1E7C
analogous
#7C471A #7C781A #4F7C1A
triadic
#7C781A #1A7C78 #781A7C
tetradic
#7C781A #1A7C47 #1A1E7C #7C1A4F
square
#7C781A #1A7C47 #1A1E7C #7C1A4F
split-complementary
#7C781A #1A4F7C #471A7C
monochromatic
#191805 #49470F #7C781A #AFA925 #D6CF3B

Accessibility & contrast

On white

4.61
#7C781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7C781A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C781A
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C781A#FFFFFF#000000##FFFFFF
##7C781A1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837303
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#867066
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c781a;
/* rgb */ color: rgb(124, 120, 26);
/* oklch */ color: oklch(55.9% 0.110 106.9);
Tailwind
colors: {
  custom: {
    50: '#a59e5f',
    500: '#7c781a',
    950: '#000000',
  },
}
SCSS
$custom: #7c781a;
$custom-light: #a59e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c781a",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 57.551,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55911,
    "c": 0.11021,
    "h": 106.9
  },
  "luminance": 0.17793
}

Semantic roles & 50–950 ramp

primary
#7C781A
secondary
#4246B0
accent
#46E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C781A

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

Preview Lab → · Contrast checker → · Palette generator →

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