#787B3A#787B3A

#787B3A is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.088 H 111.3°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#787B3A
RGBrgb(120, 123, 58)
HSLhsl(63, 36%, 35%)
HSVhsv(63, 53%, 48%)
CMYKcmyk(2.4%, 0%, 52.8%, 51.8%)
CIE-LABlab(50.06, -11.01, 34.75)
CIE-LCHlch(50.06, 36.45, 107.57°)
OKLaboklab(56.56% -0.0319 0.0819)
OKLCHoklch(56.56% 0.088 111.3)
XYZxyz(15.5927, 18.4648, 6.7448)
Luminance0.1846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B3A #3D3A7B
analogous
#7B5D3A #787B3A #577B3A
triadic
#787B3A #3A787B #7B3A78
tetradic
#787B3A #3A7B5D #3D3A7B #7B3A57
square
#787B3A #3A7B5D #3D3A7B #7B3A57
split-complementary
#787B3A #3A577B #5D3A7B
monochromatic
#272813 #4F5126 #787B3A #A1A54E #B9BD73

Accessibility & contrast

On white

4.47
#787B3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#787B3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B3A
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B3A#FFFFFF#000000##000000
##787B3A1.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#837634
Deuteranopia (green-blind)
#84783D
Tritanopia (blue-blind)
#7F746C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b3a;
/* rgb */ color: rgb(120, 123, 58);
/* oklch */ color: oklch(56.6% 0.088 111.3);
Tailwind
colors: {
  custom: {
    50: '#a0a172',
    500: '#787b3a',
    950: '#000000',
  },
}
SCSS
$custom: #787b3a;
$custom-light: #a0a172;
$custom-dark: #000000;
JSON
{
  "hex": "#787b3a",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 58
  },
  "hsl": {
    "h": 62.769,
    "s": 35.912,
    "l": 35.49
  },
  "oklch": {
    "l": 0.56562,
    "c": 0.08791,
    "h": 111.3
  },
  "luminance": 0.18464
}

Semantic roles & 50–950 ramp

primary
#787B3A
secondary
#6D6BA6
accent
#5CCC61
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #787B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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