#786D20#786D20

#786D20 is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 53.0% C 0.096 H 101.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#786D20
RGBrgb(120, 109, 32)
HSLhsl(53, 58%, 30%)
HSVhsv(53, 73%, 47%)
CMYKcmyk(0%, 9.2%, 73.3%, 52.9%)
CIE-LABlab(45.68, -5.15, 42.41)
CIE-LCHlch(45.68, 42.72, 96.93°)
OKLaboklab(53% -0.0184 0.0944)
OKLCHoklch(53% 0.096 101)
XYZxyz(13.4757, 15.0352, 3.5585)
Luminance0.1504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D20 #202B78
analogous
#784120 #786D20 #577820
triadic
#786D20 #20786D #6D2078
tetradic
#786D20 #207841 #202B78 #782057
square
#786D20 #207841 #202B78 #782057
split-complementary
#786D20 #205778 #412078
monochromatic
#181606 #484113 #786D20 #A8992D #CDBC45

Accessibility & contrast

On white

5.24
#786D20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#786D20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786D20
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D20#FFFFFF#000000##FFFFFF
##786D201.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A14
Deuteranopia (green-blind)
#7B6E25
Tritanopia (blue-blind)
#82655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d20;
/* rgb */ color: rgb(120, 109, 32);
/* oklch */ color: oklch(53.0% 0.096 101.0);
Tailwind
colors: {
  custom: {
    50: '#a29661',
    500: '#786d20',
    950: '#000000',
  },
}
SCSS
$custom: #786d20;
$custom-light: #a29661;
$custom-dark: #000000;
JSON
{
  "hex": "#786d20",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 32
  },
  "hsl": {
    "h": 52.5,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52999,
    "c": 0.09619,
    "h": 101
  },
  "luminance": 0.15035
}

Semantic roles & 50–950 ramp

primary
#786D20
secondary
#4855AB
accent
#5AE147
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786D20

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

Preview Lab → · Contrast checker → · Palette generator →

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