#786B2C#786B2C

#786B2C is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.7% C 0.084 H 97.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#786B2C
RGBrgb(120, 107, 44)
HSLhsl(50, 46%, 32%)
HSVhsv(50, 63%, 47%)
CMYKcmyk(0%, 10.8%, 63.3%, 52.9%)
CIE-LABlab(45.21, -3.22, 36.34)
CIE-LCHlch(45.21, 36.48, 95.06°)
OKLaboklab(52.66% -0.0113 0.0836)
OKLCHoklch(52.66% 0.084 97.7)
XYZxyz(13.4586, 14.6909, 4.5091)
Luminance0.1469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B2C #2C3978
analogous
#78452C #786B2C #5F782C
triadic
#786B2C #2C786B #6B2C78
tetradic
#786B2C #2C7845 #2C3978 #782C5F
square
#786B2C #2C7845 #2C3978 #782C5F
split-complementary
#786B2C #2C5F78 #452C78
monochromatic
#1E1B0B #4B431C #786B2C #A5933C #C3B15B

Accessibility & contrast

On white

5.33
#786B2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#786B2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B2C
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B2C#FFFFFF#000000##FFFFFF
##786B2C1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756825
Deuteranopia (green-blind)
#796D2F
Tritanopia (blue-blind)
#81635D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b2c;
/* rgb */ color: rgb(120, 107, 44);
/* oklch */ color: oklch(52.7% 0.084 97.7);
Tailwind
colors: {
  custom: {
    50: '#a19568',
    500: '#786b2c',
    950: '#000000',
  },
}
SCSS
$custom: #786b2c;
$custom-light: #a19568;
$custom-dark: #000000;
JSON
{
  "hex": "#786b2c",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 44
  },
  "hsl": {
    "h": 49.737,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52657,
    "c": 0.08438,
    "h": 97.7
  },
  "luminance": 0.1469
}

Semantic roles & 50–950 ramp

primary
#786B2C
secondary
#5765A9
accent
#68D652
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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