#787B3E#787B3E

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

Color values

HEX#787B3E
RGBrgb(120, 123, 62)
HSLhsl(63, 33%, 36%)
HSVhsv(63, 50%, 48%)
CMYKcmyk(2.4%, 0%, 49.6%, 51.8%)
CIE-LABlab(50.11, -10.61, 32.72)
CIE-LCHlch(50.11, 34.40, 107.96°)
OKLaboklab(56.62% -0.0303 0.0779)
OKLCHoklch(56.62% 0.084 111.3)
XYZxyz(15.6985, 18.5071, 7.3017)
Luminance0.1851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B3E #413E7B
analogous
#7B603E #787B3E #5A7B3E
triadic
#787B3E #3E787B #7B3E78
tetradic
#787B3E #3E7B60 #413E7B #7B3E5A
square
#787B3E #3E7B60 #413E7B #7B3E5A
split-complementary
#787B3E #3E5A7B #603E7B
monochromatic
#292A15 #505229 #787B3E #A0A453 #B8BB78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B3E#FFFFFF#000000##000000
##787B3E1.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)
#837639
Deuteranopia (green-blind)
#837841
Tritanopia (blue-blind)
#7F756D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b3e;
/* rgb */ color: rgb(120, 123, 62);
/* oklch */ color: oklch(56.6% 0.084 111.3);
Tailwind
colors: {
  custom: {
    50: '#a0a175',
    500: '#787b3e',
    950: '#000000',
  },
}
SCSS
$custom: #787b3e;
$custom-light: #a0a175;
$custom-dark: #000000;
JSON
{
  "hex": "#787b3e",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 62
  },
  "hsl": {
    "h": 62.951,
    "s": 32.973,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56618,
    "c": 0.08355,
    "h": 111.3
  },
  "luminance": 0.18507
}

Semantic roles & 50–950 ramp

primary
#787B3E
secondary
#726FA5
accent
#5FC964
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #787B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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