#786B22#786B22

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

Color values

HEX#786B22
RGBrgb(120, 107, 34)
HSLhsl(51, 56%, 30%)
HSVhsv(51, 72%, 47%)
CMYKcmyk(0%, 10.8%, 71.7%, 52.9%)
CIE-LABlab(45.12, -3.89, 40.97)
CIE-LCHlch(45.12, 41.15, 95.43°)
OKLaboklab(52.55% -0.0145 0.0918)
OKLCHoklch(52.55% 0.093 99)
XYZxyz(13.2928, 14.6246, 3.6357)
Luminance0.1462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B22 #222F78
analogous
#784022 #786B22 #5A7822
triadic
#786B22 #22786B #6B2278
tetradic
#786B22 #227840 #222F78 #78225A
square
#786B22 #227840 #222F78 #78225A
split-complementary
#786B22 #225A78 #402278
monochromatic
#191607 #484014 #786B22 #A89630 #CBB849

Accessibility & contrast

On white

5.35
#786B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #786B22
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B22#FFFFFF#000000##FFFFFF
##786B221.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766818
Deuteranopia (green-blind)
#796D26
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b22;
/* rgb */ color: rgb(120, 107, 34);
/* oklch */ color: oklch(52.6% 0.093 99.0);
Tailwind
colors: {
  custom: {
    50: '#a29562',
    500: '#786b22',
    950: '#000000',
  },
}
SCSS
$custom: #786b22;
$custom-light: #a29562;
$custom-dark: #000000;
JSON
{
  "hex": "#786b22",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 34
  },
  "hsl": {
    "h": 50.93,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52554,
    "c": 0.09291,
    "h": 99
  },
  "luminance": 0.14624
}

Semantic roles & 50–950 ramp

primary
#786B22
secondary
#4B59AB
accent
#5FDF49
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786B22

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

Preview Lab → · Contrast checker → · Palette generator →

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