#787A16#787A16

#787A16 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.0% C 0.115 H 110.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#787A16
RGBrgb(120, 122, 22)
HSLhsl(61, 69%, 28%)
HSVhsv(61, 82%, 48%)
CMYKcmyk(1.6%, 0%, 82%, 52.2%)
CIE-LABlab(49.46, -12.86, 49.60)
CIE-LCHlch(49.46, 51.24, 104.53°)
OKLaboklab(55.99% -0.0409 0.1077)
OKLCHoklch(55.99% 0.115 110.8)
XYZxyz(14.8506, 17.9705, 3.4453)
Luminance0.1797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A16 #18167A
analogous
#7A4A16 #787A16 #467A16
triadic
#787A16 #16787A #7A1678
tetradic
#787A16 #167A4A #18167A #7A1646
square
#787A16 #167A4A #18167A #7A1646
split-complementary
#787A16 #16467A #4A167A
monochromatic
#191A05 #45460D #787A16 #ABAE1F #D6DA31

Accessibility & contrast

On white

4.57
#787A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#787A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A16
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A16#FFFFFF#000000##000000
##787A161.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#85771F
Tritanopia (blue-blind)
#817268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a16;
/* rgb */ color: rgb(120, 122, 22);
/* oklch */ color: oklch(56.0% 0.115 110.8);
Tailwind
colors: {
  custom: {
    50: '#a2a05e',
    500: '#787a16',
    950: '#000000',
  },
}
SCSS
$custom: #787a16;
$custom-light: #a2a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#787a16",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 22
  },
  "hsl": {
    "h": 61.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55991,
    "c": 0.11525,
    "h": 110.8
  },
  "luminance": 0.1797
}

Semantic roles & 50–950 ramp

primary
#787A16
secondary
#3F3DAF
accent
#3CEC3F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787A16

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

Preview Lab → · Contrast checker → · Palette generator →

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