#787F40#787F40

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

Color values

HEX#787F40
RGBrgb(120, 127, 64)
HSLhsl(67, 33%, 37%)
HSVhsv(67, 50%, 50%)
CMYKcmyk(5.5%, 0%, 49.6%, 50.2%)
CIE-LABlab(51.32, -12.58, 33.12)
CIE-LCHlch(51.32, 35.43, 110.80°)
OKLaboklab(57.59% -0.0357 0.0789)
OKLCHoklch(57.59% 0.087 114.4)
XYZxyz(16.2607, 19.5422, 7.7649)
Luminance0.1954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F40 #47407F
analogous
#7F6740 #787F40 #587F40
triadic
#787F40 #40787F #7F4078
tetradic
#787F40 #407F67 #47407F #7F4058
square
#787F40 #407F67 #47407F #7F4058
split-complementary
#787F40 #40587F #67407F
monochromatic
#2B2E17 #52562B #787F40 #9EA855 #B6BD7C

Accessibility & contrast

On white

4.28
#787F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#787F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F40
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F40#FFFFFF#000000##000000
##787F401.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#877A3A
Deuteranopia (green-blind)
#867B43
Tritanopia (blue-blind)
#7E7970
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f40;
/* rgb */ color: rgb(120, 127, 64);
/* oklch */ color: oklch(57.6% 0.087 114.4);
Tailwind
colors: {
  custom: {
    50: '#a0a476',
    500: '#787f40',
    950: '#000000',
  },
}
SCSS
$custom: #787f40;
$custom-light: #a0a476;
$custom-dark: #000000;
JSON
{
  "hex": "#787f40",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 66.667,
    "s": 32.984,
    "l": 37.451
  },
  "oklch": {
    "l": 0.57592,
    "c": 0.08663,
    "h": 114.4
  },
  "luminance": 0.19542
}

Semantic roles & 50–950 ramp

primary
#787F40
secondary
#7973A8
accent
#5FC96B
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #787F40

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

Preview Lab → · Contrast checker → · Palette generator →

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