#7C781E#7C781E

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

Color values

HEX#7C781E
RGBrgb(124, 120, 30)
HSLhsl(57, 61%, 30%)
HSVhsv(57, 76%, 49%)
CMYKcmyk(0%, 3.2%, 75.8%, 51.4%)
CIE-LABlab(49.27, -9.55, 46.82)
CIE-LCHlch(49.27, 47.78, 101.53°)
OKLaboklab(55.94% -0.0312 0.1032)
OKLCHoklch(55.94% 0.108 106.8)
XYZxyz(15.2636, 17.8123, 3.8621)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C781E #1E227C
analogous
#7C491E #7C781E #517C1E
triadic
#7C781E #1E7C78 #781E7C
tetradic
#7C781E #1E7C49 #1E227C #7C1E51
square
#7C781E #1E7C49 #1E227C #7C1E51
split-complementary
#7C781E #1E517C #491E7C
monochromatic
#191906 #4B4812 #7C781E #ADA82A #D1CB43

Accessibility & contrast

On white

4.60
#7C781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C781E
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C781E#FFFFFF#000000##FFFFFF
##7C781E1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83730C
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#857067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c781e;
/* rgb */ color: rgb(124, 120, 30);
/* oklch */ color: oklch(55.9% 0.108 106.8);
Tailwind
colors: {
  custom: {
    50: '#a59e61',
    500: '#7c781e',
    950: '#000000',
  },
}
SCSS
$custom: #7c781e;
$custom-light: #a59e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c781e",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 57.447,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.55938,
    "c": 0.10782,
    "h": 106.8
  },
  "luminance": 0.17812
}

Semantic roles & 50–950 ramp

primary
#7C781E
secondary
#464BAF
accent
#4AE444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7C781E

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

Preview Lab → · Contrast checker → · Palette generator →

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