#786A2A#786A2A

#786A2A is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.4% C 0.085 H 97.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#786A2A
RGBrgb(120, 106, 42)
HSLhsl(49, 48%, 32%)
HSVhsv(49, 65%, 47%)
CMYKcmyk(0%, 11.7%, 65%, 52.9%)
CIE-LABlab(44.90, -2.79, 36.99)
CIE-LCHlch(44.90, 37.09, 94.31°)
OKLaboklab(52.41% -0.0104 0.0847)
OKLCHoklch(52.41% 0.085 97)
XYZxyz(13.3183, 14.4689, 4.2813)
Luminance0.1447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A2A #2A3878
analogous
#78432A #786A2A #5F782A
triadic
#786A2A #2A786A #6A2A78
tetradic
#786A2A #2A7843 #2A3878 #782A5F
square
#786A2A #2A7843 #2A3878 #782A5F
split-complementary
#786A2A #2A5F78 #432A78
monochromatic
#1D1A0A #4B421A #786A2A #A5923A #C5B158

Accessibility & contrast

On white

5.39
#786A2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#786A2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A2A
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A2A#FFFFFF#000000##FFFFFF
##786A2A1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746823
Deuteranopia (green-blind)
#786C2D
Tritanopia (blue-blind)
#81625C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a2a;
/* rgb */ color: rgb(120, 106, 42);
/* oklch */ color: oklch(52.4% 0.085 97.0);
Tailwind
colors: {
  custom: {
    50: '#a19466',
    500: '#786a2a',
    950: '#000000',
  },
}
SCSS
$custom: #786a2a;
$custom-light: #a19466;
$custom-dark: #000000;
JSON
{
  "hex": "#786a2a",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 42
  },
  "hsl": {
    "h": 49.231,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52405,
    "c": 0.08534,
    "h": 97
  },
  "luminance": 0.14468
}

Semantic roles & 50–950 ramp

primary
#786A2A
secondary
#5463AA
accent
#68D850
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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