#786A1B#786A1B

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

Color values

HEX#786A1B
RGBrgb(120, 106, 27)
HSLhsl(51, 63%, 29%)
HSVhsv(51, 78%, 47%)
CMYKcmyk(0%, 11.7%, 77.5%, 52.9%)
CIE-LABlab(44.77, -3.70, 43.56)
CIE-LCHlch(44.77, 43.72, 94.85°)
OKLaboklab(52.27% -0.0148 0.0959)
OKLCHoklch(52.27% 0.097 98.8)
XYZxyz(13.0982, 14.3809, 3.1226)
Luminance0.1438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A1B #1B2978
analogous
#783C1B #786A1B #58781B
triadic
#786A1B #1B786A #6A1B78
tetradic
#786A1B #1B783C #1B2978 #781B58
square
#786A1B #1B783C #1B2978 #781B58
split-complementary
#786A1B #1B5878 #3C1B78
monochromatic
#191606 #463E10 #786A1B #AA9626 #D3BC3B

Accessibility & contrast

On white

5.42
#786A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #786A1B
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A1B#FFFFFF#000000##FFFFFF
##786A1B1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670D
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a1b;
/* rgb */ color: rgb(120, 106, 27);
/* oklch */ color: oklch(52.3% 0.097 98.8);
Tailwind
colors: {
  custom: {
    50: '#a2945e',
    500: '#786a1b',
    950: '#000000',
  },
}
SCSS
$custom: #786a1b;
$custom-light: #a2945e;
$custom-dark: #000000;
JSON
{
  "hex": "#786a1b",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 27
  },
  "hsl": {
    "h": 50.968,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52268,
    "c": 0.09699,
    "h": 98.8
  },
  "luminance": 0.1438
}

Semantic roles & 50–950 ramp

primary
#786A1B
secondary
#4352AC
accent
#5AE641
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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