#786B1A#786B1A

#786B1A is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.5% C 0.098 H 99.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#786B1A
RGBrgb(120, 107, 26)
HSLhsl(52, 64%, 29%)
HSVhsv(52, 78%, 47%)
CMYKcmyk(0%, 10.8%, 78.3%, 52.9%)
CIE-LABlab(45.06, -4.32, 44.22)
CIE-LCHlch(45.06, 44.43, 95.57°)
OKLaboklab(52.49% -0.0167 0.0971)
OKLCHoklch(52.49% 0.098 99.7)
XYZxyz(13.1905, 14.5837, 3.0972)
Luminance0.1458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B1A #1A2778
analogous
#783C1A #786B1A #56781A
triadic
#786B1A #1A786B #6B1A78
tetradic
#786B1A #1A783C #1A2778 #781A56
square
#786B1A #1A783C #1A2778 #781A56
split-complementary
#786B1A #1A5678 #3C1A78
monochromatic
#191605 #463E0F #786B1A #AA9825 #D4BE38

Accessibility & contrast

On white

5.36
#786B1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#786B1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B1A
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B1A#FFFFFF#000000##FFFFFF
##786B1A1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680A
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#82635B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b1a;
/* rgb */ color: rgb(120, 107, 26);
/* oklch */ color: oklch(52.5% 0.098 99.7);
Tailwind
colors: {
  custom: {
    50: '#a2955d',
    500: '#786b1a',
    950: '#000000',
  },
}
SCSS
$custom: #786b1a;
$custom-light: #a2955d;
$custom-dark: #000000;
JSON
{
  "hex": "#786b1a",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 26
  },
  "hsl": {
    "h": 51.702,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52491,
    "c": 0.09847,
    "h": 99.7
  },
  "luminance": 0.14583
}

Semantic roles & 50–950 ramp

primary
#786B1A
secondary
#4150AC
accent
#58E740
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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