#787A40#787A40

#787A40 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.080 H 110.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#787A40
RGBrgb(120, 122, 64)
HSLhsl(62, 31%, 36%)
HSVhsv(62, 48%, 48%)
CMYKcmyk(1.6%, 0%, 47.5%, 52.2%)
CIE-LABlab(49.84, -9.84, 31.33)
CIE-LCHlch(49.84, 32.84, 107.44°)
OKLaboklab(56.41% -0.0279 0.075)
OKLCHoklch(56.41% 0.08 110.5)
XYZxyz(15.6309, 18.2826, 7.5550)
Luminance0.1828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A40 #42407A
analogous
#7A5F40 #787A40 #5B7A40
triadic
#787A40 #40787A #7A4078
tetradic
#787A40 #407A5F #42407A #7A405B
square
#787A40 #407A5F #42407A #7A405B
split-complementary
#787A40 #405B7A #5F407A
monochromatic
#292A16 #51522B #787A40 #9FA255 #B7BA7B

Accessibility & contrast

On white

4.51
#787A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#787A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A40
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A40#FFFFFF#000000##000000
##787A401.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#82763B
Deuteranopia (green-blind)
#827743
Tritanopia (blue-blind)
#7F746C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787a40;
/* rgb */ color: rgb(120, 122, 64);
/* oklch */ color: oklch(56.4% 0.080 110.5);
Tailwind
colors: {
  custom: {
    50: '#a0a076',
    500: '#787a40',
    950: '#000000',
  },
}
SCSS
$custom: #787a40;
$custom-light: #a0a076;
$custom-dark: #000000;
JSON
{
  "hex": "#787a40",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 62.069,
    "s": 31.183,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56413,
    "c": 0.07999,
    "h": 110.5
  },
  "luminance": 0.18282
}

Semantic roles & 50–950 ramp

primary
#787A40
secondary
#7372A4
accent
#60C764
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #787A40

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

Preview Lab → · Contrast checker → · Palette generator →

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