#787D4D#787D4D

#787D4D is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.3% C 0.068 H 113.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#787D4D
RGBrgb(120, 125, 77)
HSLhsl(66, 24%, 40%)
HSVhsv(66, 38%, 49%)
CMYKcmyk(4%, 0%, 38.4%, 51%)
CIE-LABlab(50.92, -9.96, 25.56)
CIE-LCHlch(50.92, 27.43, 111.30°)
OKLaboklab(57.34% -0.0272 0.0627)
OKLCHoklch(57.34% 0.068 113.4)
XYZxyz(16.4190, 19.1963, 9.8601)
Luminance0.1920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D4D #524D7D
analogous
#7D6A4D #787D4D #607D4D
triadic
#787D4D #4D787D #7D4D78
tetradic
#787D4D #4D7D6A #524D7D #7D4D60
square
#787D4D #4D7D6A #524D7D #7D4D60
split-complementary
#787D4D #4D607D #6A4D7D
monochromatic
#2F311E #545736 #787D4D #9BA166 #B4B88C

Accessibility & contrast

On white

4.34
#787D4D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#787D4D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D4D
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D4D#FFFFFF#000000##000000
##787D4D1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#847949
Deuteranopia (green-blind)
#837A4F
Tritanopia (blue-blind)
#7D7871
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787d4d;
/* rgb */ color: rgb(120, 125, 77);
/* oklch */ color: oklch(57.3% 0.068 113.4);
Tailwind
colors: {
  custom: {
    50: '#a0a27f',
    500: '#787d4d',
    950: '#000000',
  },
}
SCSS
$custom: #787d4d;
$custom-light: #a0a27f;
$custom-dark: #000000;
JSON
{
  "hex": "#787d4d",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 77
  },
  "hsl": {
    "h": 66.25,
    "s": 23.762,
    "l": 39.608
  },
  "oklch": {
    "l": 0.57336,
    "c": 0.06837,
    "h": 113.4
  },
  "luminance": 0.19196
}

Semantic roles & 50–950 ramp

primary
#787D4D
secondary
#8581A5
accent
#68C071
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0F0A
muted
#7E7E7C

Preview Lab

Preview with #787D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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