#786F29#786F29

#786F29 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.5% C 0.091 H 102.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#786F29
RGBrgb(120, 111, 41)
HSLhsl(53, 49%, 32%)
HSVhsv(53, 66%, 47%)
CMYKcmyk(0%, 7.5%, 65.8%, 52.9%)
CIE-LABlab(46.34, -5.72, 39.04)
CIE-LCHlch(46.34, 39.45, 98.34°)
OKLaboklab(53.55% -0.0189 0.0889)
OKLCHoklch(53.55% 0.091 102)
XYZxyz(13.8309, 15.5226, 4.3650)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F29 #293278
analogous
#784829 #786F29 #5A7829
triadic
#786F29 #29786F #6F2978
tetradic
#786F29 #297848 #293278 #78295A
square
#786F29 #297848 #293278 #78295A
split-complementary
#786F29 #295A78 #482978
monochromatic
#1D1B0A #4A4519 #786F29 #A69939 #C5B956

Accessibility & contrast

On white

5.12
#786F29 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#786F29 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F29
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F29#FFFFFF#000000##FFFFFF
##786F291.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C21
Deuteranopia (green-blind)
#7C702D
Tritanopia (blue-blind)
#816760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f29;
/* rgb */ color: rgb(120, 111, 41);
/* oklch */ color: oklch(53.5% 0.091 102.0);
Tailwind
colors: {
  custom: {
    50: '#a19866',
    500: '#786f29',
    950: '#000000',
  },
}
SCSS
$custom: #786f29;
$custom-light: #a19866;
$custom-dark: #000000;
JSON
{
  "hex": "#786f29",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 41
  },
  "hsl": {
    "h": 53.165,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53547,
    "c": 0.09088,
    "h": 102
  },
  "luminance": 0.15522
}

Semantic roles & 50–950 ramp

primary
#786F29
secondary
#535DAA
accent
#5FD94F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786F29

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

Preview Lab → · Contrast checker → · Palette generator →

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