#787F3C#787F3C

#787F3C is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.5% C 0.091 H 114.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#787F3C
RGBrgb(120, 127, 60)
HSLhsl(66, 36%, 37%)
HSVhsv(66, 53%, 50%)
CMYKcmyk(5.5%, 0%, 52.8%, 50.2%)
CIE-LABlab(51.27, -12.99, 35.15)
CIE-LCHlch(51.27, 37.47, 110.29°)
OKLaboklab(57.54% -0.0373 0.083)
OKLCHoklch(57.54% 0.091 114.2)
XYZxyz(16.1510, 19.4983, 7.1868)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F3C #433C7F
analogous
#7F653C #787F3C #577F3C
triadic
#787F3C #3C787F #7F3C78
tetradic
#787F3C #3C7F65 #433C7F #7F3C57
square
#787F3C #3C7F65 #433C7F #7F3C57
split-complementary
#787F3C #3C577F #653C7F
monochromatic
#292C15 #515528 #787F3C #9FA950 #B7BF77

Accessibility & contrast

On white

4.29
#787F3C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#787F3C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F3C
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F3C#FFFFFF#000000##000000
##787F3C1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#877936
Deuteranopia (green-blind)
#877B40
Tritanopia (blue-blind)
#7F7870
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f3c;
/* rgb */ color: rgb(120, 127, 60);
/* oklch */ color: oklch(57.5% 0.091 114.2);
Tailwind
colors: {
  custom: {
    50: '#a0a474',
    500: '#787f3c',
    950: '#000000',
  },
}
SCSS
$custom: #787f3c;
$custom-light: #a0a474;
$custom-dark: #000000;
JSON
{
  "hex": "#787f3c",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 60
  },
  "hsl": {
    "h": 66.269,
    "s": 35.829,
    "l": 36.667
  },
  "oklch": {
    "l": 0.57536,
    "c": 0.09099,
    "h": 114.2
  },
  "luminance": 0.19498
}

Semantic roles & 50–950 ramp

primary
#787F3C
secondary
#746EA8
accent
#5CCC68
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #787F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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