#786D1A#786D1A

#786D1A is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 53.0% C 0.100 H 101.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#786D1A
RGBrgb(120, 109, 26)
HSLhsl(53, 64%, 29%)
HSVhsv(53, 78%, 47%)
CMYKcmyk(0%, 9.2%, 78.3%, 52.9%)
CIE-LABlab(45.64, -5.46, 44.77)
CIE-LCHlch(45.64, 45.10, 96.95°)
OKLaboklab(52.95% -0.0199 0.0982)
OKLCHoklch(52.95% 0.1 101.4)
XYZxyz(13.4015, 15.0055, 3.1675)
Luminance0.1500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D1A #1A2578
analogous
#783E1A #786D1A #54781A
triadic
#786D1A #1A786D #6D1A78
tetradic
#786D1A #1A783E #1A2578 #781A54
square
#786D1A #1A783E #1A2578 #781A54
split-complementary
#786D1A #1A5478 #3E1A78
monochromatic
#191705 #463F0F #786D1A #AA9B25 #D4C238

Accessibility & contrast

On white

5.25
#786D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#786D1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786D1A
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D1A#FFFFFF#000000##FFFFFF
##786D1A1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A09
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#82655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d1a;
/* rgb */ color: rgb(120, 109, 26);
/* oklch */ color: oklch(53.0% 0.100 101.4);
Tailwind
colors: {
  custom: {
    50: '#a2965e',
    500: '#786d1a',
    950: '#000000',
  },
}
SCSS
$custom: #786d1a;
$custom-light: #a2965e;
$custom-dark: #000000;
JSON
{
  "hex": "#786d1a",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 26
  },
  "hsl": {
    "h": 52.979,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52954,
    "c": 0.1002,
    "h": 101.4
  },
  "luminance": 0.15005
}

Semantic roles & 50–950 ramp

primary
#786D1A
secondary
#414EAC
accent
#54E740
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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