#787F4E#787F4E

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

Color values

HEX#787F4E
RGBrgb(120, 127, 78)
HSLhsl(69, 24%, 40%)
HSVhsv(69, 39%, 50%)
CMYKcmyk(5.5%, 0%, 38.6%, 50.2%)
CIE-LABlab(51.52, -10.94, 25.78)
CIE-LCHlch(51.52, 28.01, 112.99°)
OKLaboklab(57.82% -0.0299 0.0633)
OKLCHoklch(57.82% 0.07 115.3)
XYZxyz(16.7103, 19.7220, 10.1327)
Luminance0.1972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F4E #554E7F
analogous
#7F6D4E #787F4E #607F4E
triadic
#787F4E #4E787F #7F4E78
tetradic
#787F4E #4E7F6D #554E7F #7F4E60
square
#787F4E #4E7F6D #554E7F #7F4E60
split-complementary
#787F4E #4E607F #6D4E7F
monochromatic
#30331F #545937 #787F4E #9AA268 #B3BA8E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F4E#FFFFFF#000000##000000
##787F4E1.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)
#857A4A
Deuteranopia (green-blind)
#857B50
Tritanopia (blue-blind)
#7D7A73
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #787f4e;
/* rgb */ color: rgb(120, 127, 78);
/* oklch */ color: oklch(57.8% 0.070 115.3);
Tailwind
colors: {
  custom: {
    50: '#a0a480',
    500: '#787f4e',
    950: '#000000',
  },
}
SCSS
$custom: #787f4e;
$custom-light: #a0a480;
$custom-dark: #000000;
JSON
{
  "hex": "#787f4e",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 78
  },
  "hsl": {
    "h": 68.571,
    "s": 23.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.57824,
    "c": 0.06999,
    "h": 115.3
  },
  "luminance": 0.19722
}

Semantic roles & 50–950 ramp

primary
#787F4E
secondary
#8883A6
accent
#67C074
background
#F9FAF7
surface
#F2F4EE
border
#CCCEC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #787F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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