#787D16#787D16

#787D16 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.118 H 112.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#787D16
RGBrgb(120, 125, 22)
HSLhsl(63, 70%, 29%)
HSVhsv(63, 82%, 49%)
CMYKcmyk(4%, 0%, 82.4%, 51%)
CIE-LABlab(50.36, -14.47, 50.39)
CIE-LCHlch(50.36, 52.43, 106.03°)
OKLaboklab(56.71% -0.0454 0.1094)
OKLCHoklch(56.71% 0.118 112.5)
XYZxyz(15.2247, 18.7186, 3.5700)
Luminance0.1872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D16 #1B167D
analogous
#7D4F16 #787D16 #457D16
triadic
#787D16 #16787D #7D1678
tetradic
#787D16 #167D4F #1B167D #7D1645
square
#787D16 #167D4F #1B167D #7D1645
split-complementary
#787D16 #16457D #4F167D
monochromatic
#191A05 #46490D #787D16 #AAB11F #D3DB32

Accessibility & contrast

On white

4.43
#787D16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#787D16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D16
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D16#FFFFFF#000000##000000
##787D161.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#877920
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d16;
/* rgb */ color: rgb(120, 125, 22);
/* oklch */ color: oklch(56.7% 0.118 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a25e',
    500: '#787d16',
    950: '#000000',
  },
}
SCSS
$custom: #787d16;
$custom-light: #a2a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#787d16",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 62.913,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56708,
    "c": 0.11848,
    "h": 112.5
  },
  "luminance": 0.18718
}

Semantic roles & 50–950 ramp

primary
#787D16
secondary
#433DB2
accent
#3BED44
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D16

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

Preview Lab → · Contrast checker → · Palette generator →

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