#786A1D#786A1D

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

Color values

HEX#786A1D
RGBrgb(120, 106, 29)
HSLhsl(51, 61%, 29%)
HSVhsv(51, 76%, 47%)
CMYKcmyk(0%, 11.7%, 75.8%, 52.9%)
CIE-LABlab(44.79, -3.60, 42.78)
CIE-LCHlch(44.79, 42.93, 94.81°)
OKLaboklab(52.28% -0.0143 0.0946)
OKLCHoklch(52.28% 0.096 98.6)
XYZxyz(13.1222, 14.3905, 3.2486)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A1D #1D2B78
analogous
#783D1D #786A1D #59781D
triadic
#786A1D #1D786A #6A1D78
tetradic
#786A1D #1D783D #1D2B78 #781D59
square
#786A1D #1D783D #1D2B78 #781D59
split-complementary
#786A1D #1D5978 #3D1D78
monochromatic
#191606 #473E11 #786A1D #A99629 #D1BA3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786A1D#FFFFFF#000000##FFFFFF
##786A1D1.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)
#756710
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a1d;
/* rgb */ color: rgb(120, 106, 29);
/* oklch */ color: oklch(52.3% 0.096 98.6);
Tailwind
colors: {
  custom: {
    50: '#a2945f',
    500: '#786a1d',
    950: '#000000',
  },
}
SCSS
$custom: #786a1d;
$custom-light: #a2945f;
$custom-dark: #000000;
JSON
{
  "hex": "#786a1d",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 29
  },
  "hsl": {
    "h": 50.769,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52283,
    "c": 0.09567,
    "h": 98.6
  },
  "luminance": 0.1439
}

Semantic roles & 50–950 ramp

primary
#786A1D
secondary
#4555AC
accent
#5CE444
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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