#7C781D#7C781D

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

Color values

HEX#7C781D
RGBrgb(124, 120, 29)
HSLhsl(57, 62%, 30%)
HSVhsv(57, 77%, 49%)
CMYKcmyk(0%, 3.2%, 76.6%, 51.4%)
CIE-LABlab(49.26, -9.60, 47.18)
CIE-LCHlch(49.26, 48.15, 101.50°)
OKLaboklab(55.93% -0.0314 0.1038)
OKLCHoklch(55.93% 0.108 106.9)
XYZxyz(15.2510, 17.8073, 3.7960)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C781D #1D217C
analogous
#7C491D #7C781D #507C1D
triadic
#7C781D #1D7C78 #781D7C
tetradic
#7C781D #1D7C49 #1D217C #7C1D50
square
#7C781D #1D7C49 #1D217C #7C1D50
split-complementary
#7C781D #1D507C #491D7C
monochromatic
#191806 #4A4811 #7C781D #AEA829 #D3CC41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C781D#FFFFFF#000000##FFFFFF
##7C781D1.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)
#83730A
Deuteranopia (green-blind)
#857724
Tritanopia (blue-blind)
#857067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c781d;
/* rgb */ color: rgb(124, 120, 29);
/* oklch */ color: oklch(55.9% 0.108 106.9);
Tailwind
colors: {
  custom: {
    50: '#a59e61',
    500: '#7c781d',
    950: '#000000',
  },
}
SCSS
$custom: #7c781d;
$custom-light: #a59e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c781d",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 57.474,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.55931,
    "c": 0.10844,
    "h": 106.9
  },
  "luminance": 0.17807
}

Semantic roles & 50–950 ramp

primary
#7C781D
secondary
#454AB0
accent
#49E543
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C781D

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

Preview Lab → · Contrast checker → · Palette generator →

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