#786D2B#786D2B

#786D2B is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.087 H 99.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#786D2B
RGBrgb(120, 109, 43)
HSLhsl(51, 47%, 32%)
HSVhsv(51, 64%, 47%)
CMYKcmyk(0%, 9.2%, 64.2%, 52.9%)
CIE-LABlab(45.78, -4.44, 37.46)
CIE-LCHlch(45.78, 37.72, 96.76°)
OKLaboklab(53.11% -0.015 0.0859)
OKLCHoklch(53.11% 0.087 99.9)
XYZxyz(13.6510, 15.1053, 4.4816)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D2B #2B3678
analogous
#78472B #786D2B #5D782B
triadic
#786D2B #2B786D #6D2B78
tetradic
#786D2B #2B7847 #2B3678 #782B5D
square
#786D2B #2B7847 #2B3678 #782B5D
split-complementary
#786D2B #2B5D78 #472B78
monochromatic
#1E1B0B #4B441B #786D2B #A5963B #C4B55A

Accessibility & contrast

On white

5.22
#786D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#786D2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786D2B
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D2B#FFFFFF#000000##FFFFFF
##786D2B1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A24
Deuteranopia (green-blind)
#7A6E2E
Tritanopia (blue-blind)
#81655F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d2b;
/* rgb */ color: rgb(120, 109, 43);
/* oklch */ color: oklch(53.1% 0.087 99.9);
Tailwind
colors: {
  custom: {
    50: '#a19667',
    500: '#786d2b',
    950: '#000000',
  },
}
SCSS
$custom: #786d2b;
$custom-light: #a19667;
$custom-dark: #000000;
JSON
{
  "hex": "#786d2b",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 43
  },
  "hsl": {
    "h": 51.429,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53106,
    "c": 0.08715,
    "h": 99.9
  },
  "luminance": 0.15105
}

Semantic roles & 50–950 ramp

primary
#786D2B
secondary
#5561AA
accent
#64D751
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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