#787B4C#787B4C

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

Color values

HEX#787B4C
RGBrgb(120, 123, 76)
HSLhsl(64, 24%, 39%)
HSVhsv(64, 38%, 48%)
CMYKcmyk(2.4%, 0%, 38.2%, 51.8%)
CIE-LABlab(50.31, -8.99, 25.34)
CIE-LCHlch(50.31, 26.89, 109.52°)
OKLaboklab(56.85% -0.0244 0.0622)
OKLCHoklch(56.85% 0.067 111.5)
XYZxyz(16.1333, 18.6810, 9.5920)
Luminance0.1868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B4C #4F4C7B
analogous
#7B674C #787B4C #617B4C
triadic
#787B4C #4C787B #7B4C78
tetradic
#787B4C #4C7B67 #4F4C7B #7B4C61
square
#787B4C #4C7B67 #4F4C7B #7B4C61
split-complementary
#787B4C #4C617B #674C7B
monochromatic
#2E2F1D #535535 #787B4C #9CA065 #B4B78A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B4C#FFFFFF#000000##000000
##787B4C1.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)
#827749
Deuteranopia (green-blind)
#82784E
Tritanopia (blue-blind)
#7E766F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787b4c;
/* rgb */ color: rgb(120, 123, 76);
/* oklch */ color: oklch(56.9% 0.067 111.5);
Tailwind
colors: {
  custom: {
    50: '#a0a17e',
    500: '#787b4c',
    950: '#000000',
  },
}
SCSS
$custom: #787b4c;
$custom-light: #a0a17e;
$custom-dark: #000000;
JSON
{
  "hex": "#787b4c",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 76
  },
  "hsl": {
    "h": 63.83,
    "s": 23.618,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5685,
    "c": 0.06682,
    "h": 111.5
  },
  "luminance": 0.18681
}

Semantic roles & 50–950 ramp

primary
#787B4C
secondary
#827FA4
accent
#68C06D
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #787B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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