#787B4A#787B4A

#787B4A is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.069 H 111.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#787B4A
RGBrgb(120, 123, 74)
HSLhsl(64, 25%, 39%)
HSVhsv(64, 40%, 48%)
CMYKcmyk(2.4%, 0%, 39.8%, 51.8%)
CIE-LABlab(50.28, -9.24, 26.41)
CIE-LCHlch(50.28, 27.98, 109.28°)
OKLaboklab(56.81% -0.0253 0.0646)
OKLCHoklch(56.81% 0.069 111.4)
XYZxyz(16.0649, 18.6537, 9.2315)
Luminance0.1865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B4A #4D4A7B
analogous
#7B654A #787B4A #5F7B4A
triadic
#787B4A #4A787B #7B4A78
tetradic
#787B4A #4A7B65 #4D4A7B #7B4A5F
square
#787B4A #4A7B65 #4D4A7B #7B4A5F
split-complementary
#787B4A #4A5F7B #654A7B
monochromatic
#2D2F1C #535533 #787B4A #9DA062 #B5B788

Accessibility & contrast

On white

4.44
#787B4A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#787B4A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B4A
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B4A#FFFFFF#000000##000000
##787B4A1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#827746
Deuteranopia (green-blind)
#82784C
Tritanopia (blue-blind)
#7E766F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787b4a;
/* rgb */ color: rgb(120, 123, 74);
/* oklch */ color: oklch(56.8% 0.069 111.4);
Tailwind
colors: {
  custom: {
    50: '#a0a17d',
    500: '#787b4a',
    950: '#000000',
  },
}
SCSS
$custom: #787b4a;
$custom-light: #a0a17d;
$custom-dark: #000000;
JSON
{
  "hex": "#787b4a",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 74
  },
  "hsl": {
    "h": 63.673,
    "s": 24.873,
    "l": 38.627
  },
  "oklch": {
    "l": 0.56813,
    "c": 0.06934,
    "h": 111.4
  },
  "luminance": 0.18653
}

Semantic roles & 50–950 ramp

primary
#787B4A
secondary
#7F7DA4
accent
#67C16C
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #787B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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