#787C3A#787C3A

#787C3A is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.089 H 112.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#787C3A
RGBrgb(120, 124, 58)
HSLhsl(64, 36%, 36%)
HSVhsv(64, 53%, 49%)
CMYKcmyk(3.2%, 0%, 53.2%, 51.4%)
CIE-LABlab(50.35, -11.55, 35.10)
CIE-LCHlch(50.35, 36.95, 108.22°)
OKLaboklab(56.8% -0.0334 0.0827)
OKLCHoklch(56.8% 0.089 112)
XYZxyz(15.7174, 18.7142, 6.7864)
Luminance0.1871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C3A #3E3A7C
analogous
#7C5F3A #787C3A #577C3A
triadic
#787C3A #3A787C #7C3A78
tetradic
#787C3A #3A7C5F #3E3A7C #7C3A57
square
#787C3A #3A7C5F #3E3A7C #7C3A57
split-complementary
#787C3A #3A577C #5F3A7C
monochromatic
#272913 #505226 #787C3A #A0A64E #B9BD73

Accessibility & contrast

On white

4.43
#787C3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#787C3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C3A
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C3A#FFFFFF#000000##000000
##787C3A1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#847734
Deuteranopia (green-blind)
#85793E
Tritanopia (blue-blind)
#7F756D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787c3a;
/* rgb */ color: rgb(120, 124, 58);
/* oklch */ color: oklch(56.8% 0.089 112.0);
Tailwind
colors: {
  custom: {
    50: '#a0a172',
    500: '#787c3a',
    950: '#000000',
  },
}
SCSS
$custom: #787c3a;
$custom-light: #a0a172;
$custom-dark: #000000;
JSON
{
  "hex": "#787c3a",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 58
  },
  "hsl": {
    "h": 63.636,
    "s": 36.264,
    "l": 35.686
  },
  "oklch": {
    "l": 0.56798,
    "c": 0.08919,
    "h": 112
  },
  "luminance": 0.18714
}

Semantic roles & 50–950 ramp

primary
#787C3A
secondary
#6F6BA7
accent
#5CCC62
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #787C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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