#787B4E#787B4E

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

Color values

HEX#787B4E
RGBrgb(120, 123, 78)
HSLhsl(64, 22%, 39%)
HSVhsv(64, 37%, 48%)
CMYKcmyk(2.4%, 0%, 36.6%, 51.8%)
CIE-LABlab(50.35, -8.73, 24.26)
CIE-LCHlch(50.35, 25.78, 109.78°)
OKLaboklab(56.89% -0.0236 0.0598)
OKLCHoklch(56.89% 0.064 111.5)
XYZxyz(16.2039, 18.7093, 9.9639)
Luminance0.1871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B4E #514E7B
analogous
#7B684E #787B4E #627B4E
triadic
#787B4E #4E787B #7B4E78
tetradic
#787B4E #4E7B68 #514E7B #7B4E62
square
#787B4E #4E7B68 #514E7B #7B4E62
split-complementary
#787B4E #4E627B #684E7B
monochromatic
#2F301F #535636 #787B4E #9B9F67 #B4B78D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B4E#FFFFFF#000000##000000
##787B4E1.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)
#82774B
Deuteranopia (green-blind)
#827850
Tritanopia (blue-blind)
#7E7670
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787b4e;
/* rgb */ color: rgb(120, 123, 78);
/* oklch */ color: oklch(56.9% 0.064 111.5);
Tailwind
colors: {
  custom: {
    50: '#9fa180',
    500: '#787b4e',
    950: '#000000',
  },
}
SCSS
$custom: #787b4e;
$custom-light: #9fa180;
$custom-dark: #000000;
JSON
{
  "hex": "#787b4e",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 78
  },
  "hsl": {
    "h": 64,
    "s": 22.388,
    "l": 39.412
  },
  "oklch": {
    "l": 0.56887,
    "c": 0.06427,
    "h": 111.5
  },
  "luminance": 0.18709
}

Semantic roles & 50–950 ramp

primary
#787B4E
secondary
#8481A3
accent
#69BF6F
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #787B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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