#786C1F#786C1F

#786C1F is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.8% C 0.096 H 100.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#786C1F
RGBrgb(120, 108, 31)
HSLhsl(52, 59%, 30%)
HSVhsv(52, 74%, 47%)
CMYKcmyk(0%, 10%, 74.2%, 52.9%)
CIE-LABlab(45.38, -4.64, 42.53)
CIE-LCHlch(45.38, 42.78, 96.22°)
OKLaboklab(52.76% -0.017 0.0945)
OKLCHoklch(52.76% 0.096 100.2)
XYZxyz(13.3562, 14.8177, 3.4526)
Luminance0.1482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C1F #1F2B78
analogous
#78401F #786C1F #58781F
triadic
#786C1F #1F786C #6C1F78
tetradic
#786C1F #1F7840 #1F2B78 #781F58
square
#786C1F #1F7840 #1F2B78 #781F58
split-complementary
#786C1F #1F5878 #401F78
monochromatic
#181606 #474012 #786C1F #A9982C #CEBC43

Accessibility & contrast

On white

5.30
#786C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#786C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C1F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C1F#FFFFFF#000000##FFFFFF
##786C1F1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776913
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#82645D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786c1f;
/* rgb */ color: rgb(120, 108, 31);
/* oklch */ color: oklch(52.8% 0.096 100.2);
Tailwind
colors: {
  custom: {
    50: '#a29560',
    500: '#786c1f',
    950: '#000000',
  },
}
SCSS
$custom: #786c1f;
$custom-light: #a29560;
$custom-dark: #000000;
JSON
{
  "hex": "#786c1f",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 31
  },
  "hsl": {
    "h": 51.91,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5276,
    "c": 0.09601,
    "h": 100.2
  },
  "luminance": 0.14817
}

Semantic roles & 50–950 ramp

primary
#786C1F
secondary
#4755AB
accent
#5BE246
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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