#787E4D#787E4D

#787E4D is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.070 H 114.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#787E4D
RGBrgb(120, 126, 77)
HSLhsl(67, 24%, 40%)
HSVhsv(67, 39%, 49%)
CMYKcmyk(4.8%, 0%, 38.9%, 50.6%)
CIE-LABlab(51.21, -10.52, 25.94)
CIE-LCHlch(51.21, 27.99, 112.07°)
OKLaboklab(57.57% -0.0287 0.0636)
OKLCHoklch(57.57% 0.07 114.3)
XYZxyz(16.5462, 19.4508, 9.9025)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E4D #534D7E
analogous
#7E6C4D #787E4D #607E4D
triadic
#787E4D #4D787E #7E4D78
tetradic
#787E4D #4D7E6C #534D7E #7E4D60
square
#787E4D #4D7E6C #534D7E #7E4D60
split-complementary
#787E4D #4D607E #6C4D7E
monochromatic
#30321F #545836 #787E4D #9BA266 #B4B98C

Accessibility & contrast

On white

4.29
#787E4D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#787E4D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E4D
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E4D#FFFFFF#000000##000000
##787E4D1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#857A49
Deuteranopia (green-blind)
#847B4F
Tritanopia (blue-blind)
#7D7972
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787e4d;
/* rgb */ color: rgb(120, 126, 77);
/* oklch */ color: oklch(57.6% 0.070 114.3);
Tailwind
colors: {
  custom: {
    50: '#a0a37f',
    500: '#787e4d',
    950: '#000000',
  },
}
SCSS
$custom: #787e4d;
$custom-light: #a0a37f;
$custom-dark: #000000;
JSON
{
  "hex": "#787e4d",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 77
  },
  "hsl": {
    "h": 67.347,
    "s": 24.138,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5757,
    "c": 0.0698,
    "h": 114.3
  },
  "luminance": 0.19451
}

Semantic roles & 50–950 ramp

primary
#787E4D
secondary
#8681A6
accent
#67C172
background
#F9FAF7
surface
#F2F3EE
border
#CCCDC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #787E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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