#786C20#786C20

#786C20 is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.8% C 0.095 H 100.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#786C20
RGBrgb(120, 108, 32)
HSLhsl(52, 58%, 30%)
HSVhsv(52, 73%, 47%)
CMYKcmyk(0%, 10%, 73.3%, 52.9%)
CIE-LABlab(45.39, -4.58, 42.12)
CIE-LCHlch(45.39, 42.36, 96.21°)
OKLaboklab(52.77% -0.0167 0.0938)
OKLCHoklch(52.77% 0.095 100.1)
XYZxyz(13.3696, 14.8231, 3.5231)
Luminance0.1482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C20 #202C78
analogous
#784020 #786C20 #587820
triadic
#786C20 #20786C #6C2078
tetradic
#786C20 #207840 #202C78 #782058
square
#786C20 #207840 #202C78 #782058
split-complementary
#786C20 #205878 #402078
monochromatic
#181606 #484113 #786C20 #A8972D #CDBB45

Accessibility & contrast

On white

5.30
#786C20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#786C20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C20
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C20#FFFFFF#000000##FFFFFF
##786C201.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776915
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#82645D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786c20;
/* rgb */ color: rgb(120, 108, 32);
/* oklch */ color: oklch(52.8% 0.095 100.1);
Tailwind
colors: {
  custom: {
    50: '#a29561',
    500: '#786c20',
    950: '#000000',
  },
}
SCSS
$custom: #786c20;
$custom-light: #a29561;
$custom-dark: #000000;
JSON
{
  "hex": "#786c20",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 32
  },
  "hsl": {
    "h": 51.818,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52768,
    "c": 0.09529,
    "h": 100.1
  },
  "luminance": 0.14822
}

Semantic roles & 50–950 ramp

primary
#786C20
secondary
#4856AB
accent
#5CE147
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786C20

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

Preview Lab → · Contrast checker → · Palette generator →

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