#787C16#787C16

#787C16 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.117 H 112.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#787C16
RGBrgb(120, 124, 22)
HSLhsl(62, 70%, 29%)
HSVhsv(62, 82%, 49%)
CMYKcmyk(3.2%, 0%, 82.3%, 51.4%)
CIE-LABlab(50.06, -13.94, 50.13)
CIE-LCHlch(50.06, 52.03, 105.54°)
OKLaboklab(56.47% -0.0439 0.1089)
OKLCHoklch(56.47% 0.117 112)
XYZxyz(15.0987, 18.4667, 3.5280)
Luminance0.1847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C16 #1A167C
analogous
#7C4D16 #787C16 #457C16
triadic
#787C16 #16787C #7C1678
tetradic
#787C16 #167C4D #1A167C #7C1645
square
#787C16 #167C4D #1A167C #7C1645
split-complementary
#787C16 #16457C #4D167C
monochromatic
#191A05 #46480D #787C16 #AAB01F #D4DB32

Accessibility & contrast

On white

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

On black

4.69
#787C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C16
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C16#FFFFFF#000000##000000
##787C161.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#877820
Tritanopia (blue-blind)
#817469
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c16;
/* rgb */ color: rgb(120, 124, 22);
/* oklch */ color: oklch(56.5% 0.117 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a15e',
    500: '#787c16',
    950: '#000000',
  },
}
SCSS
$custom: #787c16;
$custom-light: #a2a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#787c16",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 22
  },
  "hsl": {
    "h": 62.353,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56469,
    "c": 0.11739,
    "h": 112
  },
  "luminance": 0.18466
}

Semantic roles & 50–950 ramp

primary
#787C16
secondary
#413DB1
accent
#3BED42
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787C16

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

Preview Lab → · Contrast checker → · Palette generator →

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