#787D2F#787D2F

#787D2F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.101 H 112.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#787D2F
RGBrgb(120, 125, 47)
HSLhsl(64, 45%, 34%)
HSVhsv(64, 62%, 49%)
CMYKcmyk(4%, 0%, 62.4%, 51%)
CIE-LABlab(50.53, -13.05, 40.74)
CIE-LCHlch(50.53, 42.78, 107.77°)
OKLaboklab(56.9% -0.0389 0.0934)
OKLCHoklch(56.9% 0.101 112.6)
XYZxyz(15.5928, 18.8659, 5.5088)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D2F #342F7D
analogous
#7D5B2F #787D2F #517D2F
triadic
#787D2F #2F787D #7D2F78
tetradic
#787D2F #2F7D5B #342F7D #7D2F51
square
#787D2F #2F7D5B #342F7D #7D2F51
split-complementary
#787D2F #2F517D #5B2F7D
monochromatic
#23240E #4D511E #787D2F #A3A940 #BEC462

Accessibility & contrast

On white

4.40
#787D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#787D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D2F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D2F#FFFFFF#000000##000000
##787D2F1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#867726
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d2f;
/* rgb */ color: rgb(120, 125, 47);
/* oklch */ color: oklch(56.9% 0.101 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a26b',
    500: '#787d2f',
    950: '#000000',
  },
}
SCSS
$custom: #787d2f;
$custom-light: #a1a26b;
$custom-dark: #000000;
JSON
{
  "hex": "#787d2f",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 63.846,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56903,
    "c": 0.1012,
    "h": 112.6
  },
  "luminance": 0.18866
}

Semantic roles & 50–950 ramp

primary
#787D2F
secondary
#625DAB
accent
#53D55B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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