#786B1F#786B1F

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

Color values

HEX#786B1F
RGBrgb(120, 107, 31)
HSLhsl(51, 59%, 30%)
HSVhsv(51, 74%, 47%)
CMYKcmyk(0%, 10.8%, 74.2%, 52.9%)
CIE-LABlab(45.09, -4.06, 42.24)
CIE-LCHlch(45.09, 42.44, 95.50°)
OKLaboklab(52.53% -0.0154 0.0939)
OKLCHoklch(52.53% 0.095 99.3)
XYZxyz(13.2514, 14.6080, 3.4177)
Luminance0.1461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B1F #1F2C78
analogous
#783F1F #786B1F #59781F
triadic
#786B1F #1F786B #6B1F78
tetradic
#786B1F #1F783F #1F2C78 #781F59
square
#786B1F #1F783F #1F2C78 #781F59
split-complementary
#786B1F #1F5978 #3F1F78
monochromatic
#181606 #474012 #786B1F #A9962C #CEBA43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786B1F#FFFFFF#000000##FFFFFF
##786B1F1.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)
#766813
Deuteranopia (green-blind)
#796D24
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b1f;
/* rgb */ color: rgb(120, 107, 31);
/* oklch */ color: oklch(52.5% 0.095 99.3);
Tailwind
colors: {
  custom: {
    50: '#a29560',
    500: '#786b1f',
    950: '#000000',
  },
}
SCSS
$custom: #786b1f;
$custom-light: #a29560;
$custom-dark: #000000;
JSON
{
  "hex": "#786b1f",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 31
  },
  "hsl": {
    "h": 51.236,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52529,
    "c": 0.09513,
    "h": 99.3
  },
  "luminance": 0.14607
}

Semantic roles & 50–950 ramp

primary
#786B1F
secondary
#4756AB
accent
#5DE246
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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