#786C2F#786C2F

#786C2F is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.9% C 0.082 H 98.3°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#786C2F
RGBrgb(120, 108, 47)
HSLhsl(50, 44%, 33%)
HSVhsv(50, 61%, 47%)
CMYKcmyk(0%, 10%, 60.8%, 52.9%)
CIE-LABlab(45.53, -3.56, 35.18)
CIE-LCHlch(45.53, 35.36, 95.77°)
OKLaboklab(52.92% -0.0119 0.0816)
OKLCHoklch(52.92% 0.082 98.3)
XYZxyz(13.6219, 14.9240, 4.8519)
Luminance0.1492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C2F #2F3B78
analogous
#78472F #786C2F #5F782F
triadic
#786C2F #2F786C #6C2F78
tetradic
#786C2F #2F7847 #2F3B78 #782F5F
square
#786C2F #2F7847 #2F3B78 #782F5F
split-complementary
#786C2F #2F5F78 #472F78
monochromatic
#201D0D #4C441E #786C2F #A49440 #C1B160

Accessibility & contrast

On white

5.27
#786C2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#786C2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C2F
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C2F#FFFFFF#000000##FFFFFF
##786C2F1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766929
Deuteranopia (green-blind)
#796E32
Tritanopia (blue-blind)
#81655F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786c2f;
/* rgb */ color: rgb(120, 108, 47);
/* oklch */ color: oklch(52.9% 0.082 98.3);
Tailwind
colors: {
  custom: {
    50: '#a1956a',
    500: '#786c2f',
    950: '#000000',
  },
}
SCSS
$custom: #786c2f;
$custom-light: #a1956a;
$custom-dark: #000000;
JSON
{
  "hex": "#786c2f",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 47
  },
  "hsl": {
    "h": 50.137,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52923,
    "c": 0.08243,
    "h": 98.3
  },
  "luminance": 0.14923
}

Semantic roles & 50–950 ramp

primary
#786C2F
secondary
#5B68A8
accent
#69D354
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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