#787C2F#787C2F

#787C2F is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.100 H 112.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#787C2F
RGBrgb(120, 124, 47)
HSLhsl(63, 45%, 34%)
HSVhsv(63, 62%, 49%)
CMYKcmyk(3.2%, 0%, 62.1%, 51.4%)
CIE-LABlab(50.23, -12.51, 40.41)
CIE-LCHlch(50.23, 42.30, 107.20°)
OKLaboklab(56.67% -0.0374 0.0927)
OKLCHoklch(56.67% 0.1 112)
XYZxyz(15.4669, 18.6139, 5.4669)
Luminance0.1861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C2F #332F7C
analogous
#7C592F #787C2F #517C2F
triadic
#787C2F #2F787C #7C2F78
tetradic
#787C2F #2F7C59 #332F7C #7C2F51
square
#787C2F #2F7C59 #332F7C #7C2F51
split-complementary
#787C2F #2F517C #592F7C
monochromatic
#22230D #4D501E #787C2F #A3A840 #BEC362

Accessibility & contrast

On white

4.45
#787C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#787C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C2F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C2F#FFFFFF#000000##000000
##787C2F1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#857626
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c2f;
/* rgb */ color: rgb(120, 124, 47);
/* oklch */ color: oklch(56.7% 0.100 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a16b',
    500: '#787c2f',
    950: '#000000',
  },
}
SCSS
$custom: #787c2f;
$custom-light: #a1a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#787c2f",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 47
  },
  "hsl": {
    "h": 63.117,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56665,
    "c": 0.09998,
    "h": 112
  },
  "luminance": 0.18614
}

Semantic roles & 50–950 ramp

primary
#787C2F
secondary
#605CAA
accent
#53D55A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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