#787B47#787B47

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

Color values

HEX#787B47
RGBrgb(120, 123, 71)
HSLhsl(63, 27%, 38%)
HSVhsv(63, 42%, 48%)
CMYKcmyk(2.4%, 0%, 42.3%, 51.8%)
CIE-LABlab(50.23, -9.60, 28.01)
CIE-LCHlch(50.23, 29.61, 108.92°)
OKLaboklab(56.76% -0.0266 0.068)
OKLCHoklch(56.76% 0.073 111.4)
XYZxyz(15.9662, 18.6142, 8.7118)
Luminance0.1861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B47 #4A477B
analogous
#7B6447 #787B47 #5E7B47
triadic
#787B47 #47787B #7B4778
tetradic
#787B47 #477B64 #4A477B #7B475E
square
#787B47 #477B64 #4A477B #7B475E
split-complementary
#787B47 #475E7B #64477B
monochromatic
#2C2D1A #525431 #787B47 #9EA25D #B5B884

Accessibility & contrast

On white

4.45
#787B47 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#787B47 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B47
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B47#FFFFFF#000000##000000
##787B471.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#827743
Deuteranopia (green-blind)
#837849
Tritanopia (blue-blind)
#7E756E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b47;
/* rgb */ color: rgb(120, 123, 71);
/* oklch */ color: oklch(56.8% 0.073 111.4);
Tailwind
colors: {
  custom: {
    50: '#a0a17b',
    500: '#787b47',
    950: '#000000',
  },
}
SCSS
$custom: #787b47;
$custom-light: #a0a17b;
$custom-dark: #000000;
JSON
{
  "hex": "#787b47",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 71
  },
  "hsl": {
    "h": 63.462,
    "s": 26.804,
    "l": 38.039
  },
  "oklch": {
    "l": 0.56761,
    "c": 0.07304,
    "h": 111.4
  },
  "luminance": 0.18614
}

Semantic roles & 50–950 ramp

primary
#787B47
secondary
#7C7AA4
accent
#65C36A
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #787B47

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

Preview Lab → · Contrast checker → · Palette generator →

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