#786E1A#786E1A

#786E1A is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.101 H 102.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786E1A
RGBrgb(120, 110, 26)
HSLhsl(54, 64%, 29%)
HSVhsv(54, 78%, 47%)
CMYKcmyk(0%, 8.3%, 78.3%, 52.9%)
CIE-LABlab(45.93, -6.03, 45.04)
CIE-LCHlch(45.93, 45.44, 97.62°)
OKLaboklab(53.19% -0.0215 0.0988)
OKLCHoklch(53.19% 0.101 102.3)
XYZxyz(13.5087, 15.2201, 3.2033)
Luminance0.1522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E1A #1A2478
analogous
#783F1A #786E1A #53781A
triadic
#786E1A #1A786E #6E1A78
tetradic
#786E1A #1A783F #1A2478 #781A53
square
#786E1A #1A783F #1A2478 #781A53
split-complementary
#786E1A #1A5378 #3F1A78
monochromatic
#191705 #46400F #786E1A #AA9C25 #D4C338

Accessibility & contrast

On white

5.19
#786E1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#786E1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E1A
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E1A#FFFFFF#000000##FFFFFF
##786E1A1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A09
Deuteranopia (green-blind)
#7C6F20
Tritanopia (blue-blind)
#82665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e1a;
/* rgb */ color: rgb(120, 110, 26);
/* oklch */ color: oklch(53.2% 0.101 102.3);
Tailwind
colors: {
  custom: {
    50: '#a2975e',
    500: '#786e1a',
    950: '#000000',
  },
}
SCSS
$custom: #786e1a;
$custom-light: #a2975e;
$custom-dark: #000000;
JSON
{
  "hex": "#786e1a",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 26
  },
  "hsl": {
    "h": 53.617,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53186,
    "c": 0.1011,
    "h": 102.3
  },
  "luminance": 0.1522
}

Semantic roles & 50–950 ramp

primary
#786E1A
secondary
#414DAC
accent
#52E740
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786E1A

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

Preview Lab → · Contrast checker → · Palette generator →

#786E1A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva