#786A1E#786A1E

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

Color values

HEX#786A1E
RGBrgb(120, 106, 30)
HSLhsl(51, 60%, 29%)
HSVhsv(51, 75%, 47%)
CMYKcmyk(0%, 11.7%, 75%, 52.9%)
CIE-LABlab(44.79, -3.54, 42.37)
CIE-LCHlch(44.79, 42.52, 94.78°)
OKLaboklab(52.29% -0.014 0.094)
OKLCHoklch(52.29% 0.095 98.5)
XYZxyz(13.1347, 14.3955, 3.3148)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A1E #1E2C78
analogous
#783D1E #786A1E #59781E
triadic
#786A1E #1E786A #6A1E78
tetradic
#786A1E #1E783D #1E2C78 #781E59
square
#786A1E #1E783D #1E2C78 #781E59
split-complementary
#786A1E #1E5978 #3D1E78
monochromatic
#181606 #473F12 #786A1E #A9952A #CFB941

Accessibility & contrast

On white

5.41
#786A1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #786A1E
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A1E#FFFFFF#000000##FFFFFF
##786A1E1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786a1e;
/* rgb */ color: rgb(120, 106, 30);
/* oklch */ color: oklch(52.3% 0.095 98.5);
Tailwind
colors: {
  custom: {
    50: '#a2945f',
    500: '#786a1e',
    950: '#000000',
  },
}
SCSS
$custom: #786a1e;
$custom-light: #a2945f;
$custom-dark: #000000;
JSON
{
  "hex": "#786a1e",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 30
  },
  "hsl": {
    "h": 50.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5229,
    "c": 0.09499,
    "h": 98.5
  },
  "luminance": 0.14395
}

Semantic roles & 50–950 ramp

primary
#786A1E
secondary
#4656AC
accent
#5DE345
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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