#787B40#787B40

#787B40 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.081 H 111.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#787B40
RGBrgb(120, 123, 64)
HSLhsl(63, 32%, 37%)
HSVhsv(63, 48%, 48%)
CMYKcmyk(2.4%, 0%, 48%, 51.8%)
CIE-LABlab(50.13, -10.39, 31.69)
CIE-LCHlch(50.13, 33.35, 108.16°)
OKLaboklab(56.65% -0.0295 0.0758)
OKLCHoklch(56.65% 0.081 111.3)
XYZxyz(15.7544, 18.5294, 7.5961)
Luminance0.1853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B40 #43407B
analogous
#7B6140 #787B40 #5B7B40
triadic
#787B40 #40787B #7B4078
tetradic
#787B40 #407B61 #43407B #7B405B
square
#787B40 #407B61 #43407B #7B405B
split-complementary
#787B40 #405B7B #61407B
monochromatic
#292A16 #51532B #787B40 #9FA355 #B7BA7B

Accessibility & contrast

On white

4.46
#787B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#787B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B40
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B40#FFFFFF#000000##000000
##787B401.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83763B
Deuteranopia (green-blind)
#837843
Tritanopia (blue-blind)
#7F756D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b40;
/* rgb */ color: rgb(120, 123, 64);
/* oklch */ color: oklch(56.6% 0.081 111.3);
Tailwind
colors: {
  custom: {
    50: '#a0a176',
    500: '#787b40',
    950: '#000000',
  },
}
SCSS
$custom: #787b40;
$custom-light: #a0a176;
$custom-dark: #000000;
JSON
{
  "hex": "#787b40",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 63.051,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.56648,
    "c": 0.0813,
    "h": 111.3
  },
  "luminance": 0.18529
}

Semantic roles & 50–950 ramp

primary
#787B40
secondary
#7472A5
accent
#60C865
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #787B40

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

Preview Lab → · Contrast checker → · Palette generator →

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