#786C1A#786C1A

#786C1A is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.7% C 0.099 H 100.6°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#786C1A
RGBrgb(120, 108, 26)
HSLhsl(52, 64%, 29%)
HSVhsv(52, 78%, 47%)
CMYKcmyk(0%, 10%, 78.3%, 52.9%)
CIE-LABlab(45.35, -4.89, 44.49)
CIE-LCHlch(45.35, 44.76, 96.27°)
OKLaboklab(52.72% -0.0183 0.0976)
OKLCHoklch(52.72% 0.099 100.6)
XYZxyz(13.2954, 14.7934, 3.1322)
Luminance0.1479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C1A #1A2678
analogous
#783D1A #786C1A #55781A
triadic
#786C1A #1A786C #6C1A78
tetradic
#786C1A #1A783D #1A2678 #781A55
square
#786C1A #1A783D #1A2678 #781A55
split-complementary
#786C1A #1A5578 #3D1A78
monochromatic
#191705 #463F0F #786C1A #AA9925 #D4C038

Accessibility & contrast

On white

5.30
#786C1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#786C1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C1A
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C1A#FFFFFF#000000##FFFFFF
##786C1A1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77690A
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#82645C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786c1a;
/* rgb */ color: rgb(120, 108, 26);
/* oklch */ color: oklch(52.7% 0.099 100.6);
Tailwind
colors: {
  custom: {
    50: '#a2955e',
    500: '#786c1a',
    950: '#000000',
  },
}
SCSS
$custom: #786c1a;
$custom-light: #a2955e;
$custom-dark: #000000;
JSON
{
  "hex": "#786c1a",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 26
  },
  "hsl": {
    "h": 52.34,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52722,
    "c": 0.09932,
    "h": 100.6
  },
  "luminance": 0.14793
}

Semantic roles & 50–950 ramp

primary
#786C1A
secondary
#414FAC
accent
#56E740
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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