#786B1B#786B1B

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

Color values

HEX#786B1B
RGBrgb(120, 107, 27)
HSLhsl(52, 63%, 29%)
HSVhsv(52, 78%, 47%)
CMYKcmyk(0%, 10.8%, 77.5%, 52.9%)
CIE-LABlab(45.06, -4.27, 43.84)
CIE-LCHlch(45.06, 44.05, 95.56°)
OKLaboklab(52.5% -0.0164 0.0964)
OKLCHoklch(52.5% 0.098 99.7)
XYZxyz(13.2019, 14.5882, 3.1571)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B1B #1B2878
analogous
#783D1B #786B1B #57781B
triadic
#786B1B #1B786B #6B1B78
tetradic
#786B1B #1B783D #1B2878 #781B57
square
#786B1B #1B783D #1B2878 #781B57
split-complementary
#786B1B #1B5778 #3D1B78
monochromatic
#191606 #463E10 #786B1B #AA9826 #D3BE3B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786B1B#FFFFFF#000000##FFFFFF
##786B1B1.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)
#76680C
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b1b;
/* rgb */ color: rgb(120, 107, 27);
/* oklch */ color: oklch(52.5% 0.098 99.7);
Tailwind
colors: {
  custom: {
    50: '#a2955e',
    500: '#786b1b',
    950: '#000000',
  },
}
SCSS
$custom: #786b1b;
$custom-light: #a2955e;
$custom-dark: #000000;
JSON
{
  "hex": "#786b1b",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 27
  },
  "hsl": {
    "h": 51.613,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52498,
    "c": 0.09784,
    "h": 99.7
  },
  "luminance": 0.14588
}

Semantic roles & 50–950 ramp

primary
#786B1B
secondary
#4351AC
accent
#59E641
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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