#786F1C#786F1C

#786F1C 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#786F1C
RGBrgb(120, 111, 28)
HSLhsl(54, 62%, 29%)
HSVhsv(54, 77%, 47%)
CMYKcmyk(0%, 7.5%, 76.7%, 52.9%)
CIE-LABlab(46.24, -6.50, 44.57)
CIE-LCHlch(46.24, 45.04, 98.29°)
OKLaboklab(53.43% -0.0226 0.0982)
OKLCHoklch(53.43% 0.101 103)
XYZxyz(13.6404, 15.4464, 3.3613)
Luminance0.1545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F1C #1C2578
analogous
#78411C #786F1C #53781C
triadic
#786F1C #1C786F #6F1C78
tetradic
#786F1C #1C7841 #1C2578 #781C53
square
#786F1C #1C7841 #1C2578 #781C53
split-complementary
#786F1C #1C5378 #411C78
monochromatic
#191706 #464110 #786F1C #AA9D28 #D2C33D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786F1C#FFFFFF#000000##FFFFFF
##786F1C1.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)
#7A6B0C
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#82675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f1c;
/* rgb */ color: rgb(120, 111, 28);
/* oklch */ color: oklch(53.4% 0.101 103.0);
Tailwind
colors: {
  custom: {
    50: '#a2985f',
    500: '#786f1c',
    950: '#000000',
  },
}
SCSS
$custom: #786f1c;
$custom-light: #a2985f;
$custom-dark: #000000;
JSON
{
  "hex": "#786f1c",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 28
  },
  "hsl": {
    "h": 54.13,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53433,
    "c": 0.10077,
    "h": 103
  },
  "luminance": 0.15446
}

Semantic roles & 50–950 ramp

primary
#786F1C
secondary
#444EAC
accent
#52E543
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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