#7C781F#7C781F

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

Color values

HEX#7C781F
RGBrgb(124, 120, 31)
HSLhsl(57, 60%, 30%)
HSVhsv(57, 75%, 49%)
CMYKcmyk(0%, 3.2%, 75%, 51.4%)
CIE-LABlab(49.27, -9.50, 46.44)
CIE-LCHlch(49.27, 47.40, 101.56°)
OKLaboklab(55.95% -0.031 0.1026)
OKLCHoklch(55.95% 0.107 106.8)
XYZxyz(15.2766, 17.8175, 3.9305)
Luminance0.1782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C781F #1F237C
analogous
#7C491F #7C781F #527C1F
triadic
#7C781F #1F7C78 #781F7C
tetradic
#7C781F #1F7C49 #1F237C #7C1F52
square
#7C781F #1F7C49 #1F237C #7C1F52
split-complementary
#7C781F #1F527C #491F7C
monochromatic
#1A1907 #4B4913 #7C781F #ADA72B #D0CA45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C781F#FFFFFF#000000##FFFFFF
##7C781F1.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)
#83730F
Deuteranopia (green-blind)
#847726
Tritanopia (blue-blind)
#857067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c781f;
/* rgb */ color: rgb(124, 120, 31);
/* oklch */ color: oklch(55.9% 0.107 106.8);
Tailwind
colors: {
  custom: {
    50: '#a59e62',
    500: '#7c781f',
    950: '#000000',
  },
}
SCSS
$custom: #7c781f;
$custom-light: #a59e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c781f",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 57.419,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55945,
    "c": 0.10718,
    "h": 106.8
  },
  "luminance": 0.17817
}

Semantic roles & 50–950 ramp

primary
#7C781F
secondary
#484CAF
accent
#4BE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7C781F

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

Preview Lab → · Contrast checker → · Palette generator →

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