#787116#787116

#787116 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 53.9% C 0.106 H 104.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#787116
RGBrgb(120, 113, 22)
HSLhsl(56, 69%, 28%)
HSVhsv(56, 82%, 47%)
CMYKcmyk(0%, 5.8%, 81.7%, 52.9%)
CIE-LABlab(46.79, -7.89, 47.23)
CIE-LCHlch(46.79, 47.89, 99.48°)
OKLaboklab(53.86% -0.0271 0.1026)
OKLCHoklch(53.86% 0.106 104.8)
XYZxyz(13.7963, 15.8618, 3.0938)
Luminance0.1586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787116 #161D78
analogous
#784016 #787116 #4E7816
triadic
#787116 #167871 #711678
tetradic
#787116 #167840 #161D78 #78164E
square
#787116 #167840 #161D78 #78164E
split-complementary
#787116 #164E78 #401678
monochromatic
#1A1805 #44400D #787116 #ACA21F #D9CD2F

Accessibility & contrast

On white

5.03
#787116 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#787116 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787116
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787116#FFFFFF#000000##FFFFFF
##7871161.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#7E711E
Tritanopia (blue-blind)
#826960
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #787116;
/* rgb */ color: rgb(120, 113, 22);
/* oklch */ color: oklch(53.9% 0.106 104.8);
Tailwind
colors: {
  custom: {
    50: '#a2995c',
    500: '#787116',
    950: '#000000',
  },
}
SCSS
$custom: #787116;
$custom-light: #a2995c;
$custom-dark: #000000;
JSON
{
  "hex": "#787116",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 22
  },
  "hsl": {
    "h": 55.714,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.53862,
    "c": 0.10616,
    "h": 104.8
  },
  "luminance": 0.15861
}

Semantic roles & 50–950 ramp

primary
#787116
secondary
#3C44AD
accent
#49EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #787116

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

Preview Lab → · Contrast checker → · Palette generator →

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