#786F1B#786F1B

#786F1B is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.4% C 0.101 H 103.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#786F1B
RGBrgb(120, 111, 27)
HSLhsl(54, 63%, 29%)
HSVhsv(54, 78%, 47%)
CMYKcmyk(0%, 7.5%, 77.5%, 52.9%)
CIE-LABlab(46.23, -6.54, 44.95)
CIE-LCHlch(46.23, 45.42, 98.28°)
OKLaboklab(53.43% -0.0228 0.0988)
OKLCHoklch(53.43% 0.101 103)
XYZxyz(13.6286, 15.4417, 3.2994)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F1B #1B2478
analogous
#78411B #786F1B #53781B
triadic
#786F1B #1B786F #6F1B78
tetradic
#786F1B #1B7841 #1B2478 #781B53
square
#786F1B #1B7841 #1B2478 #781B53
split-complementary
#786F1B #1B5378 #411B78
monochromatic
#191706 #464110 #786F1B #AA9D26 #D3C43B

Accessibility & contrast

On white

5.14
#786F1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#786F1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F1B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F1B#FFFFFF#000000##FFFFFF
##786F1B1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B0A
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#82675F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786f1b;
/* rgb */ color: rgb(120, 111, 27);
/* oklch */ color: oklch(53.4% 0.101 103.0);
Tailwind
colors: {
  custom: {
    50: '#a2985e',
    500: '#786f1b',
    950: '#000000',
  },
}
SCSS
$custom: #786f1b;
$custom-light: #a2985e;
$custom-dark: #000000;
JSON
{
  "hex": "#786f1b",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 27
  },
  "hsl": {
    "h": 54.194,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53426,
    "c": 0.10141,
    "h": 103
  },
  "luminance": 0.15441
}

Semantic roles & 50–950 ramp

primary
#786F1B
secondary
#434DAC
accent
#51E641
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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