#786A1F#786A1F

#786A1F is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.094 H 98.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#786A1F
RGBrgb(120, 106, 31)
HSLhsl(51, 59%, 30%)
HSVhsv(51, 74%, 47%)
CMYKcmyk(0%, 11.7%, 74.2%, 52.9%)
CIE-LABlab(44.80, -3.49, 41.96)
CIE-LCHlch(44.80, 42.10, 94.76°)
OKLaboklab(52.3% -0.0137 0.0933)
OKLCHoklch(52.3% 0.094 98.4)
XYZxyz(13.1477, 14.4007, 3.3831)
Luminance0.1440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A1F #1F2D78
analogous
#783E1F #786A1F #5A781F
triadic
#786A1F #1F786A #6A1F78
tetradic
#786A1F #1F783E #1F2D78 #781F5A
square
#786A1F #1F783E #1F2D78 #781F5A
split-complementary
#786A1F #1F5A78 #3E1F78
monochromatic
#181506 #473F12 #786A1F #A9952C #CEB843

Accessibility & contrast

On white

5.41
#786A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#786A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A1F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A1F#FFFFFF#000000##FFFFFF
##786A1F1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756713
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a1f;
/* rgb */ color: rgb(120, 106, 31);
/* oklch */ color: oklch(52.3% 0.094 98.4);
Tailwind
colors: {
  custom: {
    50: '#a29460',
    500: '#786a1f',
    950: '#000000',
  },
}
SCSS
$custom: #786a1f;
$custom-light: #a29460;
$custom-dark: #000000;
JSON
{
  "hex": "#786a1f",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 31
  },
  "hsl": {
    "h": 50.562,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52299,
    "c": 0.09428,
    "h": 98.4
  },
  "luminance": 0.144
}

Semantic roles & 50–950 ramp

primary
#786A1F
secondary
#4757AB
accent
#5EE246
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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