#788816#788816

#788816 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.4% C 0.131 H 118.0°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#788816
RGBrgb(120, 136, 22)
HSLhsl(68, 72%, 31%)
HSVhsv(68, 84%, 53%)
CMYKcmyk(11.8%, 0%, 83.8%, 46.7%)
CIE-LABlab(53.66, -20.26, 53.29)
CIE-LCHlch(53.66, 57.01, 110.81°)
OKLaboklab(59.36% -0.0614 0.1156)
OKLCHoklch(59.36% 0.131 118)
XYZxyz(16.6951, 21.6595, 4.0601)
Luminance0.2166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788816 #261688
analogous
#885F16 #788816 #3F8816
triadic
#788816 #167888 #881678
tetradic
#788816 #16885F #261688 #88163F
square
#788816 #16885F #261688 #88163F
split-complementary
#788816 #163F88 #5F1688
monochromatic
#1B1F05 #4A530D #788816 #A6BD1F #C8DF39

Accessibility & contrast

On white

3.94
#788816 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#788816 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788816
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788816#FFFFFF#000000##000000
##7888161.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#808074
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #788816;
/* rgb */ color: rgb(120, 136, 22);
/* oklch */ color: oklch(59.4% 0.131 118.0);
Tailwind
colors: {
  custom: {
    50: '#a2aa60',
    500: '#788816',
    950: '#000000',
  },
}
SCSS
$custom: #788816;
$custom-light: #a2aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#788816",
  "rgb": {
    "r": 120,
    "g": 136,
    "b": 22
  },
  "hsl": {
    "h": 68.421,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59364,
    "c": 0.13091,
    "h": 118
  },
  "luminance": 0.21659
}

Semantic roles & 50–950 ramp

primary
#788816
secondary
#503EBC
accent
#39EF52
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F1005
muted
#7F7F79

Preview Lab

Preview with #788816

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

Preview Lab → · Contrast checker → · Palette generator →

#788816 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva