#786B26#786B26

#786B26 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.090 H 98.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#786B26
RGBrgb(120, 107, 38)
HSLhsl(50, 52%, 31%)
HSVhsv(50, 68%, 47%)
CMYKcmyk(0%, 10.8%, 68.3%, 52.9%)
CIE-LABlab(45.15, -3.64, 39.18)
CIE-LCHlch(45.15, 39.35, 95.31°)
OKLaboklab(52.59% -0.0133 0.0887)
OKLCHoklch(52.59% 0.09 98.5)
XYZxyz(13.3539, 14.6490, 3.9575)
Luminance0.1465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B26 #263378
analogous
#784226 #786B26 #5C7826
triadic
#786B26 #26786B #6B2678
tetradic
#786B26 #267842 #263378 #78265C
square
#786B26 #267842 #263378 #78265C
split-complementary
#786B26 #265C78 #422678
monochromatic
#1B1809 #4A4217 #786B26 #A69435 #C8B551

Accessibility & contrast

On white

5.34
#786B26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#786B26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B26
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B26#FFFFFF#000000##FFFFFF
##786B261.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786b26;
/* rgb */ color: rgb(120, 107, 38);
/* oklch */ color: oklch(52.6% 0.090 98.5);
Tailwind
colors: {
  custom: {
    50: '#a29564',
    500: '#786b26',
    950: '#000000',
  },
}
SCSS
$custom: #786b26;
$custom-light: #a29564;
$custom-dark: #000000;
JSON
{
  "hex": "#786b26",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 38
  },
  "hsl": {
    "h": 50.488,
    "s": 51.899,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52592,
    "c": 0.0897,
    "h": 98.5
  },
  "luminance": 0.14648
}

Semantic roles & 50–950 ramp

primary
#786B26
secondary
#505EAA
accent
#63DB4C
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786B26

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

Preview Lab → · Contrast checker → · Palette generator →

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