#786216#786216

#786216 is a mid, moderate yellow. Relative luminance 0.128; OKLCH L 50.4% C 0.094 H 91.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#786216
RGBrgb(120, 98, 22)
HSLhsl(47, 69%, 28%)
HSVhsv(47, 82%, 47%)
CMYKcmyk(0%, 18.3%, 81.7%, 52.9%)
CIE-LABlab(42.44, 0.72, 43.30)
CIE-LCHlch(42.44, 43.31, 89.04°)
OKLaboklab(50.41% -0.0028 0.0942)
OKLCHoklch(50.41% 0.094 91.7)
XYZxyz(12.2589, 12.7871, 2.5814)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786216 #162C78
analogous
#783116 #786216 #5D7816
triadic
#786216 #167862 #621678
tetradic
#786216 #167831 #162C78 #78165D
square
#786216 #167831 #162C78 #78165D
split-complementary
#786216 #165D78 #311678
monochromatic
#1A1505 #44380D #786216 #AC8C1F #D9B32F

Accessibility & contrast

On white

5.90
#786216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#786216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786216
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786216#FFFFFF#000000##FFFFFF
##7862161.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6106
Deuteranopia (green-blind)
#73671B
Tritanopia (blue-blind)
#825954
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #786216;
/* rgb */ color: rgb(120, 98, 22);
/* oklch */ color: oklch(50.4% 0.094 91.7);
Tailwind
colors: {
  custom: {
    50: '#a38e5a',
    500: '#786216',
    950: '#000000',
  },
}
SCSS
$custom: #786216;
$custom-light: #a38e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#786216",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 22
  },
  "hsl": {
    "h": 46.531,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50412,
    "c": 0.09425,
    "h": 91.7
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#786216
secondary
#3C56AD
accent
#63EC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786216

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

Preview Lab → · Contrast checker → · Palette generator →

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