#787D3E#787D3E

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

Color values

HEX#787D3E
RGBrgb(120, 125, 62)
HSLhsl(65, 34%, 37%)
HSVhsv(65, 50%, 49%)
CMYKcmyk(4%, 0%, 50.4%, 51%)
CIE-LABlab(50.70, -11.70, 33.43)
CIE-LCHlch(50.70, 35.42, 109.29°)
OKLaboklab(57.09% -0.0334 0.0794)
OKLCHoklch(57.09% 0.086 112.8)
XYZxyz(15.9491, 19.0084, 7.3853)
Luminance0.1901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D3E #433E7D
analogous
#7D633E #787D3E #597D3E
triadic
#787D3E #3E787D #7D3E78
tetradic
#787D3E #3E7D63 #433E7D #7D3E59
square
#787D3E #3E7D63 #433E7D #7D3E59
split-complementary
#787D3E #3E597D #633E7D
monochromatic
#292B15 #51542A #787D3E #9FA652 #B7BC79

Accessibility & contrast

On white

4.37
#787D3E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#787D3E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D3E
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D3E#FFFFFF#000000##000000
##787D3E1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#857838
Deuteranopia (green-blind)
#857941
Tritanopia (blue-blind)
#7F776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787d3e;
/* rgb */ color: rgb(120, 125, 62);
/* oklch */ color: oklch(57.1% 0.086 112.8);
Tailwind
colors: {
  custom: {
    50: '#a0a275',
    500: '#787d3e',
    950: '#000000',
  },
}
SCSS
$custom: #787d3e;
$custom-light: #a0a275;
$custom-dark: #000000;
JSON
{
  "hex": "#787d3e",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 62
  },
  "hsl": {
    "h": 64.762,
    "s": 33.69,
    "l": 36.667
  },
  "oklch": {
    "l": 0.5709,
    "c": 0.08618,
    "h": 112.8
  },
  "luminance": 0.19008
}

Semantic roles & 50–950 ramp

primary
#787D3E
secondary
#7470A7
accent
#5ECA67
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #787D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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