#786A1A#786A1A

#786A1A is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.098 H 98.9°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#786A1A
RGBrgb(120, 106, 26)
HSLhsl(51, 64%, 29%)
HSVhsv(51, 78%, 47%)
CMYKcmyk(0%, 11.7%, 78.3%, 52.9%)
CIE-LABlab(44.77, -3.74, 43.95)
CIE-LCHlch(44.77, 44.11, 94.87°)
OKLaboklab(52.26% -0.015 0.0965)
OKLCHoklch(52.26% 0.098 98.9)
XYZxyz(13.0869, 14.3764, 3.0627)
Luminance0.1438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A1A #1A2878
analogous
#783B1A #786A1A #57781A
triadic
#786A1A #1A786A #6A1A78
tetradic
#786A1A #1A783B #1A2878 #781A57
square
#786A1A #1A783B #1A2878 #781A57
split-complementary
#786A1A #1A5778 #3B1A78
monochromatic
#191605 #463E0F #786A1A #AA9625 #D4BD38

Accessibility & contrast

On white

5.42
#786A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#786A1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A1A
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A1A#FFFFFF#000000##FFFFFF
##786A1A1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670B
Deuteranopia (green-blind)
#796C1F
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a1a;
/* rgb */ color: rgb(120, 106, 26);
/* oklch */ color: oklch(52.3% 0.098 98.9);
Tailwind
colors: {
  custom: {
    50: '#a2945d',
    500: '#786a1a',
    950: '#000000',
  },
}
SCSS
$custom: #786a1a;
$custom-light: #a2945d;
$custom-dark: #000000;
JSON
{
  "hex": "#786a1a",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 26
  },
  "hsl": {
    "h": 51.064,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5226,
    "c": 0.09763,
    "h": 98.9
  },
  "luminance": 0.14376
}

Semantic roles & 50–950 ramp

primary
#786A1A
secondary
#4151AC
accent
#59E740
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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