#787C4A#787C4A

#787C4A is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.071 H 112.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#787C4A
RGBrgb(120, 124, 74)
HSLhsl(65, 25%, 39%)
HSVhsv(65, 40%, 49%)
CMYKcmyk(3.2%, 0%, 40.3%, 51.4%)
CIE-LABlab(50.57, -9.79, 26.79)
CIE-LCHlch(50.57, 28.52, 110.08°)
OKLaboklab(57.05% -0.0269 0.0654)
OKLCHoklch(57.05% 0.071 112.4)
XYZxyz(16.1896, 18.9030, 9.2730)
Luminance0.1890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C4A #4E4A7C
analogous
#7C674A #787C4A #5F7C4A
triadic
#787C4A #4A787C #7C4A78
tetradic
#787C4A #4A7C67 #4E4A7C #7C4A5F
square
#787C4A #4A7C67 #4E4A7C #7C4A5F
split-complementary
#787C4A #4A5F7C #674A7C
monochromatic
#2E2F1C #535633 #787C4A #9CA162 #B4B888

Accessibility & contrast

On white

4.39
#787C4A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#787C4A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C4A
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C4A#FFFFFF#000000##000000
##787C4A1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#837846
Deuteranopia (green-blind)
#83794C
Tritanopia (blue-blind)
#7E7770
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787c4a;
/* rgb */ color: rgb(120, 124, 74);
/* oklch */ color: oklch(57.0% 0.071 112.4);
Tailwind
colors: {
  custom: {
    50: '#a0a17d',
    500: '#787c4a',
    950: '#000000',
  },
}
SCSS
$custom: #787c4a;
$custom-light: #a0a17d;
$custom-dark: #000000;
JSON
{
  "hex": "#787c4a",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 74
  },
  "hsl": {
    "h": 64.8,
    "s": 25.253,
    "l": 38.824
  },
  "oklch": {
    "l": 0.57047,
    "c": 0.07073,
    "h": 112.4
  },
  "luminance": 0.18903
}

Semantic roles & 50–950 ramp

primary
#787C4A
secondary
#817DA4
accent
#66C26D
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0F0A
muted
#7E7E7C

Preview Lab

Preview with #787C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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