#787F4D#787F4D

#787F4D is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.071 H 115.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#787F4D
RGBrgb(120, 127, 77)
HSLhsl(68, 25%, 40%)
HSVhsv(68, 39%, 50%)
CMYKcmyk(5.5%, 0%, 39.4%, 50.2%)
CIE-LABlab(51.51, -11.07, 26.32)
CIE-LCHlch(51.51, 28.55, 112.81°)
OKLaboklab(57.8% -0.0303 0.0645)
OKLCHoklch(57.8% 0.071 115.2)
XYZxyz(16.6747, 19.7078, 9.9453)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F4D #544D7F
analogous
#7F6D4D #787F4D #5F7F4D
triadic
#787F4D #4D787F #7F4D78
tetradic
#787F4D #4D7F6D #544D7F #7F4D5F
square
#787F4D #4D7F6D #544D7F #7F4D5F
split-complementary
#787F4D #4D5F7F #6D4D7F
monochromatic
#30331F #545936 #787F4D #9AA367 #B3BA8D

Accessibility & contrast

On white

4.25
#787F4D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#787F4D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F4D
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F4D#FFFFFF#000000##000000
##787F4D1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#867A49
Deuteranopia (green-blind)
#857B4F
Tritanopia (blue-blind)
#7D7A73
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #787f4d;
/* rgb */ color: rgb(120, 127, 77);
/* oklch */ color: oklch(57.8% 0.071 115.2);
Tailwind
colors: {
  custom: {
    50: '#a0a47f',
    500: '#787f4d',
    950: '#000000',
  },
}
SCSS
$custom: #787f4d;
$custom-light: #a0a47f;
$custom-dark: #000000;
JSON
{
  "hex": "#787f4d",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 77
  },
  "hsl": {
    "h": 68.4,
    "s": 24.51,
    "l": 40
  },
  "oklch": {
    "l": 0.57805,
    "c": 0.07125,
    "h": 115.2
  },
  "luminance": 0.19708
}

Semantic roles & 50–950 ramp

primary
#787F4D
secondary
#8782A6
accent
#67C173
background
#F9FAF7
surface
#F2F4EE
border
#CCCEC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #787F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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