#786B1C#786B1C

#786B1C is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.5% C 0.097 H 99.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#786B1C
RGBrgb(120, 107, 28)
HSLhsl(52, 62%, 29%)
HSVhsv(52, 77%, 47%)
CMYKcmyk(0%, 10.8%, 76.7%, 52.9%)
CIE-LABlab(45.07, -4.22, 43.45)
CIE-LCHlch(45.07, 43.66, 95.55°)
OKLaboklab(52.51% -0.0162 0.0958)
OKLCHoklch(52.51% 0.097 99.6)
XYZxyz(13.2137, 14.5929, 3.2191)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B1C #1C2978
analogous
#783D1C #786B1C #57781C
triadic
#786B1C #1C786B #6B1C78
tetradic
#786B1C #1C783D #1C2978 #781C57
square
#786B1C #1C783D #1C2978 #781C57
split-complementary
#786B1C #1C5778 #3D1C78
monochromatic
#191606 #463F10 #786B1C #AA9728 #D2BD3D

Accessibility & contrast

On white

5.36
#786B1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#786B1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B1C
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B1C#FFFFFF#000000##FFFFFF
##786B1C1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680E
Deuteranopia (green-blind)
#796D21
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b1c;
/* rgb */ color: rgb(120, 107, 28);
/* oklch */ color: oklch(52.5% 0.097 99.6);
Tailwind
colors: {
  custom: {
    50: '#a2955e',
    500: '#786b1c',
    950: '#000000',
  },
}
SCSS
$custom: #786b1c;
$custom-light: #a2955e;
$custom-dark: #000000;
JSON
{
  "hex": "#786b1c",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 28
  },
  "hsl": {
    "h": 51.522,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52505,
    "c": 0.09718,
    "h": 99.6
  },
  "luminance": 0.14592
}

Semantic roles & 50–950 ramp

primary
#786B1C
secondary
#4452AC
accent
#5AE543
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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