#787D3A#787D3A

#787D3A is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.090 H 112.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#787D3A
RGBrgb(120, 125, 58)
HSLhsl(64, 37%, 36%)
HSVhsv(64, 54%, 49%)
CMYKcmyk(4%, 0%, 53.6%, 51%)
CIE-LABlab(50.65, -12.10, 35.45)
CIE-LCHlch(50.65, 37.46, 108.85°)
OKLaboklab(57.04% -0.035 0.0834)
OKLCHoklch(57.04% 0.09 112.8)
XYZxyz(15.8434, 18.9661, 6.8284)
Luminance0.1897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D3A #3F3A7D
analogous
#7D603A #787D3A #567D3A
triadic
#787D3A #3A787D #7D3A78
tetradic
#787D3A #3A7D60 #3F3A7D #7D3A56
square
#787D3A #3A7D60 #3F3A7D #7D3A56
split-complementary
#787D3A #3A567D #603A7D
monochromatic
#282913 #505327 #787D3A #A0A74D #B9BE73

Accessibility & contrast

On white

4.38
#787D3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#787D3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D3A
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D3A#FFFFFF#000000##000000
##787D3A1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#857834
Deuteranopia (green-blind)
#85793E
Tritanopia (blue-blind)
#7F766E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787d3a;
/* rgb */ color: rgb(120, 125, 58);
/* oklch */ color: oklch(57.0% 0.090 112.8);
Tailwind
colors: {
  custom: {
    50: '#a0a272',
    500: '#787d3a',
    950: '#000000',
  },
}
SCSS
$custom: #787d3a;
$custom-light: #a0a272;
$custom-dark: #000000;
JSON
{
  "hex": "#787d3a",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 58
  },
  "hsl": {
    "h": 64.478,
    "s": 36.612,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57035,
    "c": 0.09047,
    "h": 112.8
  },
  "luminance": 0.18966
}

Semantic roles & 50–950 ramp

primary
#787D3A
secondary
#706BA8
accent
#5BCD64
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #787D3A

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

Preview Lab → · Contrast checker → · Palette generator →

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