#786A20#786A20

#786A20 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.094 H 98.3°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#786A20
RGBrgb(120, 106, 32)
HSLhsl(50, 58%, 30%)
HSVhsv(50, 73%, 47%)
CMYKcmyk(0%, 11.7%, 73.3%, 52.9%)
CIE-LABlab(44.81, -3.44, 41.54)
CIE-LCHlch(44.81, 41.68, 94.73°)
OKLaboklab(52.31% -0.0135 0.0926)
OKLCHoklch(52.31% 0.094 98.3)
XYZxyz(13.1611, 14.4061, 3.4536)
Luminance0.1441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A20 #202E78
analogous
#783E20 #786A20 #5A7820
triadic
#786A20 #20786A #6A2078
tetradic
#786A20 #20783E #202E78 #78205A
square
#786A20 #20783E #202E78 #78205A
split-complementary
#786A20 #205A78 #3E2078
monochromatic
#181506 #483F13 #786A20 #A8952D #CDB845

Accessibility & contrast

On white

5.41
#786A20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#786A20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A20
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A20#FFFFFF#000000##FFFFFF
##786A201.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756715
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a20;
/* rgb */ color: rgb(120, 106, 32);
/* oklch */ color: oklch(52.3% 0.094 98.3);
Tailwind
colors: {
  custom: {
    50: '#a29460',
    500: '#786a20',
    950: '#000000',
  },
}
SCSS
$custom: #786a20;
$custom-light: #a29460;
$custom-dark: #000000;
JSON
{
  "hex": "#786a20",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 32
  },
  "hsl": {
    "h": 50.455,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52307,
    "c": 0.09355,
    "h": 98.3
  },
  "luminance": 0.14405
}

Semantic roles & 50–950 ramp

primary
#786A20
secondary
#4858AB
accent
#5FE147
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786A20

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

Preview Lab → · Contrast checker → · Palette generator →

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