#787A42#787A42

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

Color values

HEX#787A42
RGBrgb(120, 122, 66)
HSLhsl(62, 30%, 37%)
HSVhsv(62, 46%, 48%)
CMYKcmyk(1.6%, 0%, 45.9%, 52.2%)
CIE-LABlab(49.86, -9.62, 30.28)
CIE-LCHlch(49.86, 31.78, 107.63°)
OKLaboklab(56.44% -0.0271 0.0728)
OKLCHoklch(56.44% 0.078 110.4)
XYZxyz(15.6889, 18.3058, 7.8601)
Luminance0.1830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A42 #44427A
analogous
#7A6042 #787A42 #5C7A42
triadic
#787A42 #42787A #7A4278
tetradic
#787A42 #427A60 #44427A #7A425C
square
#787A42 #427A60 #44427A #7A425C
split-complementary
#787A42 #425C7A #60427A
monochromatic
#2A2B17 #51522D #787A42 #9FA257 #B7B97D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787A42#FFFFFF#000000##000000
##787A421.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)
#82763D
Deuteranopia (green-blind)
#827745
Tritanopia (blue-blind)
#7F746D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787a42;
/* rgb */ color: rgb(120, 122, 66);
/* oklch */ color: oklch(56.4% 0.078 110.4);
Tailwind
colors: {
  custom: {
    50: '#a0a077',
    500: '#787a42',
    950: '#000000',
  },
}
SCSS
$custom: #787a42;
$custom-light: #a0a077;
$custom-dark: #000000;
JSON
{
  "hex": "#787a42",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 62.143,
    "s": 29.787,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56444,
    "c": 0.07768,
    "h": 110.4
  },
  "luminance": 0.18305
}

Semantic roles & 50–950 ramp

primary
#787A42
secondary
#7674A4
accent
#62C665
background
#F9F9F7
surface
#F2F2ED
border
#CCCCC8
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #787A42

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

Preview Lab → · Contrast checker → · Palette generator →

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