#787C2E#787C2E

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

Color values

HEX#787C2E
RGBrgb(120, 124, 46)
HSLhsl(63, 46%, 33%)
HSVhsv(63, 63%, 49%)
CMYKcmyk(3.2%, 0%, 62.9%, 51.4%)
CIE-LABlab(50.22, -12.59, 40.87)
CIE-LCHlch(50.22, 42.76, 107.12°)
OKLaboklab(56.65% -0.0377 0.0935)
OKLCHoklch(56.65% 0.101 112)
XYZxyz(15.4469, 18.6060, 5.3618)
Luminance0.1861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C2E #322E7C
analogous
#7C592E #787C2E #517C2E
triadic
#787C2E #2E787C #7C2E78
tetradic
#787C2E #2E7C59 #322E7C #7C2E51
square
#787C2E #2E7C59 #322E7C #7C2E51
split-complementary
#787C2E #2E517C #592E7C
monochromatic
#22230D #4D4F1D #787C2E #A3A93F #BFC460

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787C2E#FFFFFF#000000##000000
##787C2E1.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)
#857625
Deuteranopia (green-blind)
#857833
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c2e;
/* rgb */ color: rgb(120, 124, 46);
/* oklch */ color: oklch(56.7% 0.101 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a16a',
    500: '#787c2e',
    950: '#000000',
  },
}
SCSS
$custom: #787c2e;
$custom-light: #a1a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#787c2e",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 63.077,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56654,
    "c": 0.10087,
    "h": 112
  },
  "luminance": 0.18606
}

Semantic roles & 50–950 ramp

primary
#787C2E
secondary
#5F5BAB
accent
#52D659
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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