#786B1D#786B1D

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

Color values

HEX#786B1D
RGBrgb(120, 107, 29)
HSLhsl(51, 61%, 29%)
HSVhsv(51, 76%, 47%)
CMYKcmyk(0%, 10.8%, 75.8%, 52.9%)
CIE-LABlab(45.08, -4.17, 43.06)
CIE-LCHlch(45.08, 43.26, 95.53°)
OKLaboklab(52.51% -0.0159 0.0952)
OKLCHoklch(52.51% 0.097 99.5)
XYZxyz(13.2258, 14.5978, 3.2832)
Luminance0.1460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B1D #1D2A78
analogous
#783E1D #786B1D #58781D
triadic
#786B1D #1D786B #6B1D78
tetradic
#786B1D #1D783E #1D2A78 #781D58
square
#786B1D #1D783E #1D2A78 #781D58
split-complementary
#786B1D #1D5878 #3E1D78
monochromatic
#191606 #473F11 #786B1D #A99729 #D1BC3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786B1D#FFFFFF#000000##FFFFFF
##786B1D1.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)
#766810
Deuteranopia (green-blind)
#796D22
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b1d;
/* rgb */ color: rgb(120, 107, 29);
/* oklch */ color: oklch(52.5% 0.097 99.5);
Tailwind
colors: {
  custom: {
    50: '#a2955f',
    500: '#786b1d',
    950: '#000000',
  },
}
SCSS
$custom: #786b1d;
$custom-light: #a2955f;
$custom-dark: #000000;
JSON
{
  "hex": "#786b1d",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 29
  },
  "hsl": {
    "h": 51.429,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52513,
    "c": 0.09652,
    "h": 99.5
  },
  "luminance": 0.14597
}

Semantic roles & 50–950 ramp

primary
#786B1D
secondary
#4554AC
accent
#5BE444
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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