#787D14#787D14

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

Color values

HEX#787D14
RGBrgb(120, 125, 20)
HSLhsl(63, 72%, 28%)
HSVhsv(63, 84%, 49%)
CMYKcmyk(4%, 0%, 84%, 51%)
CIE-LABlab(50.35, -14.55, 50.97)
CIE-LCHlch(50.35, 53.00, 105.93°)
OKLaboklab(56.7% -0.0458 0.1103)
OKLCHoklch(56.7% 0.119 112.5)
XYZxyz(15.2061, 18.7112, 3.4723)
Luminance0.1871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D14 #19147D
analogous
#7D4D14 #787D14 #437D14
triadic
#787D14 #14787D #7D1478
tetradic
#787D14 #147D4D #19147D #7D1443
square
#787D14 #147D4D #19147D #7D1443
split-complementary
#787D14 #14437D #4D147D
monochromatic
#191A04 #45480C #787D14 #ABB21C #D5DE2E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D14#FFFFFF#000000##000000
##787D141.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)
#87791F
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d14;
/* rgb */ color: rgb(120, 125, 20);
/* oklch */ color: oklch(56.7% 0.119 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a25d',
    500: '#787d14',
    950: '#000000',
  },
}
SCSS
$custom: #787d14;
$custom-light: #a2a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#787d14",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 20
  },
  "hsl": {
    "h": 62.857,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56698,
    "c": 0.11941,
    "h": 112.5
  },
  "luminance": 0.18711
}

Semantic roles & 50–950 ramp

primary
#787D14
secondary
#403AB2
accent
#39EF41
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D14

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

Preview Lab → · Contrast checker → · Palette generator →

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