#786A18#786A18

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

Color values

HEX#786A18
RGBrgb(120, 106, 24)
HSLhsl(51, 67%, 28%)
HSVhsv(51, 80%, 47%)
CMYKcmyk(0%, 11.7%, 80%, 52.9%)
CIE-LABlab(44.76, -3.83, 44.69)
CIE-LCHlch(44.76, 44.85, 94.90°)
OKLaboklab(52.25% -0.0155 0.0976)
OKLCHoklch(52.25% 0.099 99)
XYZxyz(13.0653, 14.3677, 2.9490)
Luminance0.1437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A18 #182678
analogous
#783A18 #786A18 #567818
triadic
#786A18 #18786A #6A1878
tetradic
#786A18 #18783A #182678 #781856
square
#786A18 #18783A #182678 #781856
split-complementary
#786A18 #185678 #3A1878
monochromatic
#1A1705 #453D0E #786A18 #AB9722 #D6BF34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786A18#FFFFFF#000000##FFFFFF
##786A181.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)
#756706
Deuteranopia (green-blind)
#796C1E
Tritanopia (blue-blind)
#82615A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a18;
/* rgb */ color: rgb(120, 106, 24);
/* oklch */ color: oklch(52.2% 0.099 99.0);
Tailwind
colors: {
  custom: {
    50: '#a2945c',
    500: '#786a18',
    950: '#000000',
  },
}
SCSS
$custom: #786a18;
$custom-light: #a2945c;
$custom-dark: #000000;
JSON
{
  "hex": "#786a18",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 24
  },
  "hsl": {
    "h": 51.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52247,
    "c": 0.09884,
    "h": 99
  },
  "luminance": 0.14367
}

Semantic roles & 50–950 ramp

primary
#786A18
secondary
#3F4FAD
accent
#57EA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786A18

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

Preview Lab → · Contrast checker → · Palette generator →

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