#787B3D#787B3D

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

Color values

HEX#787B3D
RGBrgb(120, 123, 61)
HSLhsl(63, 34%, 36%)
HSVhsv(63, 50%, 48%)
CMYKcmyk(2.4%, 0%, 50.4%, 51.8%)
CIE-LABlab(50.09, -10.71, 33.23)
CIE-LCHlch(50.09, 34.91, 107.86°)
OKLaboklab(56.6% -0.0307 0.0789)
OKLCHoklch(56.6% 0.085 111.3)
XYZxyz(15.6713, 18.4962, 7.1586)
Luminance0.1850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B3D #403D7B
analogous
#7B5F3D #787B3D #597B3D
triadic
#787B3D #3D787B #7B3D78
tetradic
#787B3D #3D7B5F #403D7B #7B3D59
square
#787B3D #3D7B5F #403D7B #7B3D59
split-complementary
#787B3D #3D597B #5F3D7B
monochromatic
#282914 #505229 #787B3D #A0A451 #B8BC77

Accessibility & contrast

On white

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

On black

4.70
#787B3D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B3D
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B3D#FFFFFF#000000##000000
##787B3D1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#837637
Deuteranopia (green-blind)
#837840
Tritanopia (blue-blind)
#7F756D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b3d;
/* rgb */ color: rgb(120, 123, 61);
/* oklch */ color: oklch(56.6% 0.085 111.3);
Tailwind
colors: {
  custom: {
    50: '#a0a174',
    500: '#787b3d',
    950: '#000000',
  },
}
SCSS
$custom: #787b3d;
$custom-light: #a0a174;
$custom-dark: #000000;
JSON
{
  "hex": "#787b3d",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 61
  },
  "hsl": {
    "h": 62.903,
    "s": 33.696,
    "l": 36.078
  },
  "oklch": {
    "l": 0.56604,
    "c": 0.08466,
    "h": 111.3
  },
  "luminance": 0.18496
}

Semantic roles & 50–950 ramp

primary
#787B3D
secondary
#716EA6
accent
#5ECA63
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #787B3D

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

Preview Lab → · Contrast checker → · Palette generator →

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