#787E40#787E40

#787E40 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.085 H 113.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#787E40
RGBrgb(120, 126, 64)
HSLhsl(66, 33%, 37%)
HSVhsv(66, 49%, 49%)
CMYKcmyk(4.8%, 0%, 49.2%, 50.6%)
CIE-LABlab(51.02, -12.04, 32.76)
CIE-LCHlch(51.02, 34.91, 110.18°)
OKLaboklab(57.36% -0.0342 0.0781)
OKLCHoklch(57.36% 0.085 113.6)
XYZxyz(16.1322, 19.2852, 7.7221)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E40 #46407E
analogous
#7E6540 #787E40 #597E40
triadic
#787E40 #40787E #7E4078
tetradic
#787E40 #407E65 #46407E #7E4059
square
#787E40 #407E65 #46407E #7E4059
split-complementary
#787E40 #40597E #65407E
monochromatic
#2B2D17 #51552B #787E40 #9FA755 #B6BC7C

Accessibility & contrast

On white

4.32
#787E40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#787E40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E40
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E40#FFFFFF#000000##000000
##787E401.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#86793B
Deuteranopia (green-blind)
#867A43
Tritanopia (blue-blind)
#7F7870
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e40;
/* rgb */ color: rgb(120, 126, 64);
/* oklch */ color: oklch(57.4% 0.085 113.6);
Tailwind
colors: {
  custom: {
    50: '#a0a376',
    500: '#787e40',
    950: '#000000',
  },
}
SCSS
$custom: #787e40;
$custom-light: #a0a376;
$custom-dark: #000000;
JSON
{
  "hex": "#787e40",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 65.806,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57356,
    "c": 0.08528,
    "h": 113.6
  },
  "luminance": 0.19285
}

Semantic roles & 50–950 ramp

primary
#787E40
secondary
#7873A7
accent
#5FC969
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #787E40

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

Preview Lab → · Contrast checker → · Palette generator →

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