#787316#787316

#787316 is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.3% C 0.108 H 106.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#787316
RGBrgb(120, 115, 22)
HSLhsl(57, 69%, 28%)
HSVhsv(57, 82%, 47%)
CMYKcmyk(0%, 4.2%, 81.7%, 52.9%)
CIE-LABlab(47.38, -9.00, 47.76)
CIE-LCHlch(47.38, 48.60, 100.68°)
OKLaboklab(54.33% -0.0302 0.1038)
OKLCHoklch(54.33% 0.108 106.2)
XYZxyz(14.0219, 16.3130, 3.1690)
Luminance0.1631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787316 #161B78
analogous
#784216 #787316 #4C7816
triadic
#787316 #167873 #731678
tetradic
#787316 #167842 #161B78 #78164C
square
#787316 #167842 #161B78 #78164C
split-complementary
#787316 #164C78 #421678
monochromatic
#1A1905 #44410D #787316 #ACA51F #D9D02F

Accessibility & contrast

On white

4.93
#787316 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#787316 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787316
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787316#FFFFFF#000000##FFFFFF
##7873161.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#80721E
Tritanopia (blue-blind)
#816B62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787316;
/* rgb */ color: rgb(120, 115, 22);
/* oklch */ color: oklch(54.3% 0.108 106.2);
Tailwind
colors: {
  custom: {
    50: '#a29b5d',
    500: '#787316',
    950: '#000000',
  },
}
SCSS
$custom: #787316;
$custom-light: #a29b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787316",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 22
  },
  "hsl": {
    "h": 56.939,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.54332,
    "c": 0.10808,
    "h": 106.2
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#787316
secondary
#3C42AD
accent
#45EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E04
muted
#7F7E79

Preview Lab

Preview with #787316

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

Preview Lab → · Contrast checker → · Palette generator →

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