#786D19#786D19

#786D19 is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 52.9% C 0.101 H 101.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#786D19
RGBrgb(120, 109, 25)
HSLhsl(53, 66%, 28%)
HSVhsv(53, 79%, 47%)
CMYKcmyk(0%, 9.2%, 79.2%, 52.9%)
CIE-LABlab(45.64, -5.50, 45.13)
CIE-LCHlch(45.64, 45.47, 96.95°)
OKLaboklab(52.95% -0.0201 0.0988)
OKLCHoklch(52.95% 0.101 101.5)
XYZxyz(13.3905, 15.0011, 3.1097)
Luminance0.1500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D19 #192478
analogous
#783D19 #786D19 #537819
triadic
#786D19 #19786D #6D1978
tetradic
#786D19 #19783D #192478 #781953
square
#786D19 #19783D #192478 #781953
split-complementary
#786D19 #195378 #3D1978
monochromatic
#191705 #453F0E #786D19 #AB9B24 #D5C336

Accessibility & contrast

On white

5.25
#786D19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#786D19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786D19
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D19#FFFFFF#000000##FFFFFF
##786D191.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A07
Deuteranopia (green-blind)
#7B6E1F
Tritanopia (blue-blind)
#82655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d19;
/* rgb */ color: rgb(120, 109, 25);
/* oklch */ color: oklch(52.9% 0.101 101.5);
Tailwind
colors: {
  custom: {
    50: '#a2965d',
    500: '#786d19',
    950: '#000000',
  },
}
SCSS
$custom: #786d19;
$custom-light: #a2965d;
$custom-dark: #000000;
JSON
{
  "hex": "#786d19",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 25
  },
  "hsl": {
    "h": 53.053,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52947,
    "c": 0.10081,
    "h": 101.5
  },
  "luminance": 0.15001
}

Semantic roles & 50–950 ramp

primary
#786D19
secondary
#404DAD
accent
#53E83F
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786D19

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

Preview Lab → · Contrast checker → · Palette generator →

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