#787E4F#787E4F

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

Color values

HEX#787E4F
RGBrgb(120, 126, 79)
HSLhsl(68, 23%, 40%)
HSVhsv(68, 37%, 49%)
CMYKcmyk(4.8%, 0%, 37.3%, 50.6%)
CIE-LABlab(51.24, -10.26, 24.87)
CIE-LCHlch(51.24, 26.90, 112.41°)
OKLaboklab(57.61% -0.0279 0.0612)
OKLCHoklch(57.61% 0.067 114.5)
XYZxyz(16.6179, 19.4795, 10.2801)
Luminance0.1948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E4F #554F7E
analogous
#7E6D4F #787E4F #607E4F
triadic
#787E4F #4F787E #7E4F78
tetradic
#787E4F #4F7E6D #554F7E #7E4F60
square
#787E4F #4F7E6D #554F7E #7E4F60
split-complementary
#787E4F #4F607E #6D4F7E
monochromatic
#303320 #545837 #787E4F #9AA169 #B3B98F

Accessibility & contrast

On white

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

On black

4.90
#787E4F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E4F
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E4F#FFFFFF#000000##000000
##787E4F1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#847A4C
Deuteranopia (green-blind)
#847B51
Tritanopia (blue-blind)
#7D7972
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787e4f;
/* rgb */ color: rgb(120, 126, 79);
/* oklch */ color: oklch(57.6% 0.067 114.5);
Tailwind
colors: {
  custom: {
    50: '#9fa381',
    500: '#787e4f',
    950: '#000000',
  },
}
SCSS
$custom: #787e4f;
$custom-light: #9fa381;
$custom-dark: #000000;
JSON
{
  "hex": "#787e4f",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 79
  },
  "hsl": {
    "h": 67.66,
    "s": 22.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.57608,
    "c": 0.06727,
    "h": 114.5
  },
  "luminance": 0.19479
}

Semantic roles & 50–950 ramp

primary
#787E4F
secondary
#8883A6
accent
#68BF73
background
#F9FAF7
surface
#F2F3EE
border
#CCCDC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #787E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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