#786D1B#786D1B

#786D1B is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 53.0% C 0.100 H 101.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#786D1B
RGBrgb(120, 109, 27)
HSLhsl(53, 63%, 29%)
HSVhsv(53, 78%, 47%)
CMYKcmyk(0%, 9.2%, 77.5%, 52.9%)
CIE-LABlab(45.65, -5.41, 44.39)
CIE-LCHlch(45.65, 44.72, 96.95°)
OKLaboklab(52.96% -0.0196 0.0976)
OKLCHoklch(52.96% 0.1 101.4)
XYZxyz(13.4128, 15.0101, 3.2274)
Luminance0.1501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D1B #1B2678
analogous
#783F1B #786D1B #55781B
triadic
#786D1B #1B786D #6D1B78
tetradic
#786D1B #1B783F #1B2678 #781B55
square
#786D1B #1B783F #1B2678 #781B55
split-complementary
#786D1B #1B5578 #3F1B78
monochromatic
#191706 #464010 #786D1B #AA9A26 #D3C13B

Accessibility & contrast

On white

5.25
#786D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#786D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786D1B
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D1B#FFFFFF#000000##FFFFFF
##786D1B1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A0B
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#82655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d1b;
/* rgb */ color: rgb(120, 109, 27);
/* oklch */ color: oklch(53.0% 0.100 101.4);
Tailwind
colors: {
  custom: {
    50: '#a2965e',
    500: '#786d1b',
    950: '#000000',
  },
}
SCSS
$custom: #786d1b;
$custom-light: #a2965e;
$custom-dark: #000000;
JSON
{
  "hex": "#786d1b",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 27
  },
  "hsl": {
    "h": 52.903,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52961,
    "c": 0.09958,
    "h": 101.4
  },
  "luminance": 0.15009
}

Semantic roles & 50–950 ramp

primary
#786D1B
secondary
#434FAC
accent
#55E641
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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