#786A19#786A19

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

Color values

HEX#786A19
RGBrgb(120, 106, 25)
HSLhsl(51, 66%, 28%)
HSVhsv(51, 79%, 47%)
CMYKcmyk(0%, 11.7%, 79.2%, 52.9%)
CIE-LABlab(44.76, -3.79, 44.32)
CIE-LCHlch(44.76, 44.48, 94.89°)
OKLaboklab(52.25% -0.0153 0.0971)
OKLCHoklch(52.25% 0.098 98.9)
XYZxyz(13.0759, 14.3720, 3.0048)
Luminance0.1437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A19 #192778
analogous
#783A19 #786A19 #567819
triadic
#786A19 #19786A #6A1978
tetradic
#786A19 #19783A #192778 #781956
square
#786A19 #19783A #192778 #781956
split-complementary
#786A19 #195678 #3A1978
monochromatic
#191605 #453D0E #786A19 #AB9724 #D5BE36

Accessibility & contrast

On white

5.42
#786A19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#786A19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A19
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A19#FFFFFF#000000##FFFFFF
##786A191.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786a19;
/* rgb */ color: rgb(120, 106, 25);
/* oklch */ color: oklch(52.3% 0.098 98.9);
Tailwind
colors: {
  custom: {
    50: '#a2945d',
    500: '#786a19',
    950: '#000000',
  },
}
SCSS
$custom: #786a19;
$custom-light: #a2945d;
$custom-dark: #000000;
JSON
{
  "hex": "#786a19",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 25
  },
  "hsl": {
    "h": 51.158,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52254,
    "c": 0.09824,
    "h": 98.9
  },
  "luminance": 0.14371
}

Semantic roles & 50–950 ramp

primary
#786A19
secondary
#4050AD
accent
#58E83F
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786A19

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

Preview Lab → · Contrast checker → · Palette generator →

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