#787016#787016

#787016 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.6% C 0.105 H 104.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#787016
RGBrgb(120, 112, 22)
HSLhsl(55, 69%, 28%)
HSVhsv(55, 82%, 47%)
CMYKcmyk(0%, 6.7%, 81.7%, 52.9%)
CIE-LABlab(46.50, -7.33, 46.97)
CIE-LCHlch(46.50, 47.54, 98.86°)
OKLaboklab(53.63% -0.0255 0.1021)
OKLCHoklch(53.63% 0.105 104)
XYZxyz(13.6853, 15.6399, 3.0568)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787016 #161E78
analogous
#783F16 #787016 #4F7816
triadic
#787016 #167870 #701678
tetradic
#787016 #16783F #161E78 #78164F
square
#787016 #16783F #161E78 #78164F
split-complementary
#787016 #164F78 #3F1678
monochromatic
#1A1805 #44400D #787016 #ACA01F #D9CB2F

Accessibility & contrast

On white

5.09
#787016 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#787016 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787016
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787016#FFFFFF#000000##FFFFFF
##7870161.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#7D701D
Tritanopia (blue-blind)
#82685F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #787016;
/* rgb */ color: rgb(120, 112, 22);
/* oklch */ color: oklch(53.6% 0.105 104.0);
Tailwind
colors: {
  custom: {
    50: '#a2985c',
    500: '#787016',
    950: '#000000',
  },
}
SCSS
$custom: #787016;
$custom-light: #a2985c;
$custom-dark: #000000;
JSON
{
  "hex": "#787016",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 22
  },
  "hsl": {
    "h": 55.102,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.53628,
    "c": 0.10522,
    "h": 104
  },
  "luminance": 0.15639
}

Semantic roles & 50–950 ramp

primary
#787016
secondary
#3C46AD
accent
#4AEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #787016

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

Preview Lab → · Contrast checker → · Palette generator →

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