#787D40#787D40

#787D40 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.1% C 0.084 H 112.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#787D40
RGBrgb(120, 125, 64)
HSLhsl(65, 32%, 37%)
HSVhsv(65, 49%, 49%)
CMYKcmyk(4%, 0%, 48.8%, 51%)
CIE-LABlab(50.72, -11.49, 32.41)
CIE-LCHlch(50.72, 34.38, 109.53°)
OKLaboklab(57.12% -0.0326 0.0773)
OKLCHoklch(57.12% 0.084 112.9)
XYZxyz(16.0050, 19.0307, 7.6797)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D40 #45407D
analogous
#7D6440 #787D40 #5A7D40
triadic
#787D40 #40787D #7D4078
tetradic
#787D40 #407D64 #45407D #7D405A
square
#787D40 #407D64 #45407D #7D405A
split-complementary
#787D40 #405A7D #64407D
monochromatic
#2A2C17 #51552B #787D40 #9FA555 #B6BC7C

Accessibility & contrast

On white

4.37
#787D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#787D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D40
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D40#FFFFFF#000000##000000
##787D401.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#85783B
Deuteranopia (green-blind)
#857A43
Tritanopia (blue-blind)
#7F776F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787d40;
/* rgb */ color: rgb(120, 125, 64);
/* oklch */ color: oklch(57.1% 0.084 112.9);
Tailwind
colors: {
  custom: {
    50: '#a0a276',
    500: '#787d40',
    950: '#000000',
  },
}
SCSS
$custom: #787d40;
$custom-light: #a0a276;
$custom-dark: #000000;
JSON
{
  "hex": "#787d40",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 64.918,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.57119,
    "c": 0.08394,
    "h": 112.9
  },
  "luminance": 0.1903
}

Semantic roles & 50–950 ramp

primary
#787D40
secondary
#7773A6
accent
#5FC868
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #787D40

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

Preview Lab → · Contrast checker → · Palette generator →

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