#786B29#786B29

#786B29 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.6% C 0.087 H 98.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#786B29
RGBrgb(120, 107, 41)
HSLhsl(50, 49%, 32%)
HSVhsv(50, 66%, 47%)
CMYKcmyk(0%, 10.8%, 65.8%, 52.9%)
CIE-LABlab(45.18, -3.44, 37.78)
CIE-LCHlch(45.18, 37.94, 95.20°)
OKLaboklab(52.62% -0.0123 0.0862)
OKLCHoklch(52.62% 0.087 98.1)
XYZxyz(13.4042, 14.6692, 4.2228)
Luminance0.1467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B29 #293678
analogous
#784429 #786B29 #5E7829
triadic
#786B29 #29786B #6B2978
tetradic
#786B29 #297844 #293678 #78295E
square
#786B29 #297844 #293678 #78295E
split-complementary
#786B29 #295E78 #442978
monochromatic
#1D1A0A #4A4219 #786B29 #A69439 #C5B356

Accessibility & contrast

On white

5.34
#786B29 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#786B29 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B29
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B29#FFFFFF#000000##FFFFFF
##786B291.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756821
Deuteranopia (green-blind)
#796D2C
Tritanopia (blue-blind)
#81635D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b29;
/* rgb */ color: rgb(120, 107, 41);
/* oklch */ color: oklch(52.6% 0.087 98.1);
Tailwind
colors: {
  custom: {
    50: '#a19566',
    500: '#786b29',
    950: '#000000',
  },
}
SCSS
$custom: #786b29;
$custom-light: #a19566;
$custom-dark: #000000;
JSON
{
  "hex": "#786b29",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 41
  },
  "hsl": {
    "h": 50.127,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52623,
    "c": 0.08712,
    "h": 98.1
  },
  "luminance": 0.14669
}

Semantic roles & 50–950 ramp

primary
#786B29
secondary
#5361AA
accent
#66D94F
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786B29

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

Preview Lab → · Contrast checker → · Palette generator →

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