#7C781C#7C781C

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

Color values

HEX#7C781C
RGBrgb(124, 120, 28)
HSLhsl(58, 63%, 30%)
HSVhsv(58, 77%, 49%)
CMYKcmyk(0%, 3.2%, 77.4%, 51.4%)
CIE-LABlab(49.26, -9.65, 47.54)
CIE-LCHlch(49.26, 48.51, 101.47°)
OKLaboklab(55.92% -0.0317 0.1044)
OKLCHoklch(55.92% 0.109 106.9)
XYZxyz(15.2389, 17.8024, 3.7319)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C781C #1C207C
analogous
#7C481C #7C781C #507C1C
triadic
#7C781C #1C7C78 #781C7C
tetradic
#7C781C #1C7C48 #1C207C #7C1C50
square
#7C781C #1C7C48 #1C207C #7C1C50
split-complementary
#7C781C #1C507C #481C7C
monochromatic
#191806 #4A4811 #7C781C #AEA827 #D4CD3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C781C#FFFFFF#000000##FFFFFF
##7C781C1.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)
#837308
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#867067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c781c;
/* rgb */ color: rgb(124, 120, 28);
/* oklch */ color: oklch(55.9% 0.109 106.9);
Tailwind
colors: {
  custom: {
    50: '#a59e60',
    500: '#7c781c',
    950: '#000000',
  },
}
SCSS
$custom: #7c781c;
$custom-light: #a59e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c781c",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 57.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.10905,
    "h": 106.9
  },
  "luminance": 0.17802
}

Semantic roles & 50–950 ramp

primary
#7C781C
secondary
#4448B0
accent
#48E642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C781C

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

Preview Lab → · Contrast checker → · Palette generator →

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