#787B4F#787B4F

#787B4F is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.9% C 0.063 H 111.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#787B4F
RGBrgb(120, 123, 79)
HSLhsl(64, 22%, 40%)
HSVhsv(64, 36%, 48%)
CMYKcmyk(2.4%, 0%, 35.8%, 51.8%)
CIE-LABlab(50.36, -8.59, 23.72)
CIE-LCHlch(50.36, 25.23, 109.91°)
OKLaboklab(56.91% -0.0231 0.0586)
OKLCHoklch(56.91% 0.063 111.5)
XYZxyz(16.2401, 18.7237, 10.1541)
Luminance0.1872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B4F #524F7B
analogous
#7B684F #787B4F #627B4F
triadic
#787B4F #4F787B #7B4F78
tetradic
#787B4F #4F7B68 #524F7B #7B4F62
square
#787B4F #4F7B68 #524F7B #7B4F62
split-complementary
#787B4F #4F627B #684F7B
monochromatic
#2F301F #545637 #787B4F #9B9E69 #B4B68E

Accessibility & contrast

On white

4.43
#787B4F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#787B4F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B4F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B4F#FFFFFF#000000##000000
##787B4F1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#81774C
Deuteranopia (green-blind)
#827951
Tritanopia (blue-blind)
#7D7670
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787b4f;
/* rgb */ color: rgb(120, 123, 79);
/* oklch */ color: oklch(56.9% 0.063 111.5);
Tailwind
colors: {
  custom: {
    50: '#9fa181',
    500: '#787b4f',
    950: '#000000',
  },
}
SCSS
$custom: #787b4f;
$custom-light: #9fa181;
$custom-dark: #000000;
JSON
{
  "hex": "#787b4f",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 79
  },
  "hsl": {
    "h": 64.091,
    "s": 21.782,
    "l": 39.608
  },
  "oklch": {
    "l": 0.56906,
    "c": 0.06298,
    "h": 111.5
  },
  "luminance": 0.18724
}

Semantic roles & 50–950 ramp

primary
#787B4F
secondary
#8582A3
accent
#69BE6F
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0E0E0A
muted
#7E7E7C

Preview Lab

Preview with #787B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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