#787C40#787C40

#787C40 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.083 H 112.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#787C40
RGBrgb(120, 124, 64)
HSLhsl(64, 32%, 37%)
HSVhsv(64, 48%, 49%)
CMYKcmyk(3.2%, 0%, 48.4%, 51.4%)
CIE-LABlab(50.43, -10.94, 32.05)
CIE-LCHlch(50.43, 33.86, 108.86°)
OKLaboklab(56.88% -0.0311 0.0765)
OKLCHoklch(56.88% 0.083 112.1)
XYZxyz(15.8791, 18.7788, 7.6377)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C40 #44407C
analogous
#7C6240 #787C40 #5A7C40
triadic
#787C40 #40787C #7C4078
tetradic
#787C40 #407C62 #44407C #7C405A
square
#787C40 #407C62 #44407C #7C405A
split-complementary
#787C40 #405A7C #62407C
monochromatic
#2A2B16 #51542B #787C40 #9FA455 #B7BB7B

Accessibility & contrast

On white

4.42
#787C40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#787C40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C40
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C40#FFFFFF#000000##000000
##787C401.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84773B
Deuteranopia (green-blind)
#847943
Tritanopia (blue-blind)
#7F766E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787c40;
/* rgb */ color: rgb(120, 124, 64);
/* oklch */ color: oklch(56.9% 0.083 112.1);
Tailwind
colors: {
  custom: {
    50: '#a0a176',
    500: '#787c40',
    950: '#000000',
  },
}
SCSS
$custom: #787c40;
$custom-light: #a0a176;
$custom-dark: #000000;
JSON
{
  "hex": "#787c40",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 64
  },
  "hsl": {
    "h": 64,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56883,
    "c": 0.08261,
    "h": 112.1
  },
  "luminance": 0.18779
}

Semantic roles & 50–950 ramp

primary
#787C40
secondary
#7672A6
accent
#60C867
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #787C40

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

Preview Lab → · Contrast checker → · Palette generator →

#787C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva