#786F1A#786F1A

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

Color values

HEX#786F1A
RGBrgb(120, 111, 26)
HSLhsl(54, 64%, 29%)
HSVhsv(54, 78%, 47%)
CMYKcmyk(0%, 7.5%, 78.3%, 52.9%)
CIE-LABlab(46.23, -6.59, 45.32)
CIE-LCHlch(46.23, 45.79, 98.28°)
OKLaboklab(53.42% -0.0231 0.0994)
OKLCHoklch(53.42% 0.102 103.1)
XYZxyz(13.6172, 15.4371, 3.2395)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F1A #1A2378
analogous
#78401A #786F1A #52781A
triadic
#786F1A #1A786F #6F1A78
tetradic
#786F1A #1A7840 #1A2378 #781A52
square
#786F1A #1A7840 #1A2378 #781A52
split-complementary
#786F1A #1A5278 #401A78
monochromatic
#191705 #46400F #786F1A #AA9E25 #D4C538

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786F1A#FFFFFF#000000##FFFFFF
##786F1A1.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)
#7A6B08
Deuteranopia (green-blind)
#7D6F20
Tritanopia (blue-blind)
#82675F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786f1a;
/* rgb */ color: rgb(120, 111, 26);
/* oklch */ color: oklch(53.4% 0.102 103.1);
Tailwind
colors: {
  custom: {
    50: '#a2985e',
    500: '#786f1a',
    950: '#000000',
  },
}
SCSS
$custom: #786f1a;
$custom-light: #a2985e;
$custom-dark: #000000;
JSON
{
  "hex": "#786f1a",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 26
  },
  "hsl": {
    "h": 54.255,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53419,
    "c": 0.10201,
    "h": 103.1
  },
  "luminance": 0.15437
}

Semantic roles & 50–950 ramp

primary
#786F1A
secondary
#414CAC
accent
#50E740
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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