#787B49#787B49

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

Color values

HEX#787B49
RGBrgb(120, 123, 73)
HSLhsl(64, 26%, 38%)
HSVhsv(64, 41%, 48%)
CMYKcmyk(2.4%, 0%, 40.7%, 51.8%)
CIE-LABlab(50.26, -9.36, 26.95)
CIE-LCHlch(50.26, 28.53, 109.16°)
OKLaboklab(56.8% -0.0257 0.0657)
OKLCHoklch(56.8% 0.071 111.4)
XYZxyz(16.0315, 18.6403, 9.0554)
Luminance0.1864 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B49 #4C497B
analogous
#7B6549 #787B49 #5F7B49
triadic
#787B49 #49787B #7B4978
tetradic
#787B49 #497B65 #4C497B #7B495F
square
#787B49 #497B65 #4C497B #7B495F
split-complementary
#787B49 #495F7B #65497B
monochromatic
#2D2E1B #535532 #787B49 #9DA160 #B5B887

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B49#FFFFFF#000000##000000
##787B491.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)
#827745
Deuteranopia (green-blind)
#82784B
Tritanopia (blue-blind)
#7E756F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787b49;
/* rgb */ color: rgb(120, 123, 73);
/* oklch */ color: oklch(56.8% 0.071 111.4);
Tailwind
colors: {
  custom: {
    50: '#a0a17c',
    500: '#787b49',
    950: '#000000',
  },
}
SCSS
$custom: #787b49;
$custom-light: #a0a17c;
$custom-dark: #000000;
JSON
{
  "hex": "#787b49",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 73
  },
  "hsl": {
    "h": 63.6,
    "s": 25.51,
    "l": 38.431
  },
  "oklch": {
    "l": 0.56796,
    "c": 0.07058,
    "h": 111.4
  },
  "luminance": 0.1864
}

Semantic roles & 50–950 ramp

primary
#787B49
secondary
#7E7CA4
accent
#66C26B
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #787B49

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

Preview Lab → · Contrast checker → · Palette generator →

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