#786C1C#786C1C

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

Color values

HEX#786C1C
RGBrgb(120, 108, 28)
HSLhsl(52, 62%, 29%)
HSVhsv(52, 77%, 47%)
CMYKcmyk(0%, 10%, 76.7%, 52.9%)
CIE-LABlab(45.36, -4.79, 43.73)
CIE-LCHlch(45.36, 43.99, 96.25°)
OKLaboklab(52.74% -0.0178 0.0964)
OKLCHoklch(52.74% 0.098 100.4)
XYZxyz(13.3185, 14.8027, 3.2540)
Luminance0.1480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C1C #1C2878
analogous
#783E1C #786C1C #56781C
triadic
#786C1C #1C786C #6C1C78
tetradic
#786C1C #1C783E #1C2878 #781C56
square
#786C1C #1C783E #1C2878 #781C56
split-complementary
#786C1C #1C5678 #3E1C78
monochromatic
#191606 #463F10 #786C1C #AA9928 #D2BE3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786C1C#FFFFFF#000000##FFFFFF
##786C1C1.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)
#77690E
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#82645C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786c1c;
/* rgb */ color: rgb(120, 108, 28);
/* oklch */ color: oklch(52.7% 0.098 100.4);
Tailwind
colors: {
  custom: {
    50: '#a2955f',
    500: '#786c1c',
    950: '#000000',
  },
}
SCSS
$custom: #786c1c;
$custom-light: #a2955f;
$custom-dark: #000000;
JSON
{
  "hex": "#786c1c",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 28
  },
  "hsl": {
    "h": 52.174,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52736,
    "c": 0.09805,
    "h": 100.4
  },
  "luminance": 0.14802
}

Semantic roles & 50–950 ramp

primary
#786C1C
secondary
#4451AC
accent
#58E543
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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