#788716#788716

#788716 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.1% C 0.130 H 117.5°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#788716
RGBrgb(120, 135, 22)
HSLhsl(68, 72%, 31%)
HSVhsv(68, 84%, 53%)
CMYKcmyk(11.1%, 0%, 83.7%, 47.1%)
CIE-LABlab(53.36, -19.74, 53.03)
CIE-LCHlch(53.36, 56.58, 110.42°)
OKLaboklab(59.12% -0.0599 0.1151)
OKLCHoklch(59.12% 0.13 117.5)
XYZxyz(16.5550, 21.3791, 4.0134)
Luminance0.2138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788716 #251687
analogous
#875D16 #788716 #3F8716
triadic
#788716 #167887 #871678
tetradic
#788716 #16875D #251687 #87163F
square
#788716 #16875D #251687 #87163F
split-complementary
#788716 #163F87 #5D1687
monochromatic
#1A1E05 #49520D #788716 #A7BC1F #C9DF39

Accessibility & contrast

On white

3.98
#788716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#788716 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788716
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788716#FFFFFF#000000##000000
##7887161.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #788716;
/* rgb */ color: rgb(120, 135, 22);
/* oklch */ color: oklch(59.1% 0.130 117.5);
Tailwind
colors: {
  custom: {
    50: '#a2a960',
    500: '#788716',
    950: '#000000',
  },
}
SCSS
$custom: #788716;
$custom-light: #a2a960;
$custom-dark: #000000;
JSON
{
  "hex": "#788716",
  "rgb": {
    "r": 120,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 67.965,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59121,
    "c": 0.12975,
    "h": 117.5
  },
  "luminance": 0.21379
}

Semantic roles & 50–950 ramp

primary
#788716
secondary
#4E3EBB
accent
#39EF51
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788716

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

Preview Lab → · Contrast checker → · Palette generator →

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