#786E20#786E20

#786E20 is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.097 H 101.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786E20
RGBrgb(120, 110, 32)
HSLhsl(53, 58%, 30%)
HSVhsv(53, 73%, 47%)
CMYKcmyk(0%, 8.3%, 73.3%, 52.9%)
CIE-LABlab(45.97, -5.72, 42.69)
CIE-LCHlch(45.97, 43.08, 97.63°)
OKLaboklab(53.23% -0.02 0.095)
OKLCHoklch(53.23% 0.097 101.9)
XYZxyz(13.5830, 15.2498, 3.5943)
Luminance0.1525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E20 #202A78
analogous
#784220 #786E20 #567820
triadic
#786E20 #20786E #6E2078
tetradic
#786E20 #207842 #202A78 #782056
square
#786E20 #207842 #202A78 #782056
split-complementary
#786E20 #205678 #422078
monochromatic
#181606 #484213 #786E20 #A89A2D #CDBE45

Accessibility & contrast

On white

5.19
#786E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#786E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E20
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E20#FFFFFF#000000##FFFFFF
##786E201.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A14
Deuteranopia (green-blind)
#7C6F25
Tritanopia (blue-blind)
#81665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e20;
/* rgb */ color: rgb(120, 110, 32);
/* oklch */ color: oklch(53.2% 0.097 101.9);
Tailwind
colors: {
  custom: {
    50: '#a29761',
    500: '#786e20',
    950: '#000000',
  },
}
SCSS
$custom: #786e20;
$custom-light: #a29761;
$custom-dark: #000000;
JSON
{
  "hex": "#786e20",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 32
  },
  "hsl": {
    "h": 53.182,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53231,
    "c": 0.0971,
    "h": 101.9
  },
  "luminance": 0.15249
}

Semantic roles & 50–950 ramp

primary
#786E20
secondary
#4854AB
accent
#58E147
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786E20

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

Preview Lab → · Contrast checker → · Palette generator →

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