#787B16#787B16

#787B16 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.2% C 0.116 H 111.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#787B16
RGBrgb(120, 123, 22)
HSLhsl(62, 70%, 28%)
HSVhsv(62, 82%, 48%)
CMYKcmyk(2.4%, 0%, 82.1%, 51.8%)
CIE-LABlab(49.76, -13.40, 49.87)
CIE-LCHlch(49.76, 51.64, 105.04°)
OKLaboklab(56.23% -0.0424 0.1083)
OKLCHoklch(56.23% 0.116 111.4)
XYZxyz(14.9740, 18.2173, 3.4864)
Luminance0.1822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B16 #19167B
analogous
#7B4B16 #787B16 #457B16
triadic
#787B16 #16787B #7B1678
tetradic
#787B16 #167B4B #19167B #7B1645
square
#787B16 #167B4B #19167B #7B1645
split-complementary
#787B16 #16457B #4B167B
monochromatic
#191A05 #45470D #787B16 #ABAF1F #D5DA31

Accessibility & contrast

On white

4.52
#787B16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#787B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B16
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B16#FFFFFF#000000##000000
##787B161.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#86781F
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b16;
/* rgb */ color: rgb(120, 123, 22);
/* oklch */ color: oklch(56.2% 0.116 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a15e',
    500: '#787b16',
    950: '#000000',
  },
}
SCSS
$custom: #787b16;
$custom-light: #a2a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#787b16",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 61.782,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5623,
    "c": 0.11631,
    "h": 111.4
  },
  "luminance": 0.18217
}

Semantic roles & 50–950 ramp

primary
#787B16
secondary
#403DB0
accent
#3BEC41
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787B16

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

Preview Lab → · Contrast checker → · Palette generator →

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