#786C18#786C18

#786C18 is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.7% C 0.101 H 100.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#786C18
RGBrgb(120, 108, 24)
HSLhsl(53, 67%, 28%)
HSVhsv(53, 80%, 47%)
CMYKcmyk(0%, 10%, 80%, 52.9%)
CIE-LABlab(45.34, -4.98, 45.22)
CIE-LCHlch(45.34, 45.50, 96.28°)
OKLaboklab(52.71% -0.0187 0.0988)
OKLCHoklch(52.71% 0.101 100.7)
XYZxyz(13.2738, 14.7848, 3.0185)
Luminance0.1478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C18 #182478
analogous
#783C18 #786C18 #547818
triadic
#786C18 #18786C #6C1878
tetradic
#786C18 #18783C #182478 #781854
square
#786C18 #18783C #182478 #781854
split-complementary
#786C18 #185478 #3C1878
monochromatic
#1A1705 #453E0E #786C18 #AB9A22 #D6C234

Accessibility & contrast

On white

5.31
#786C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#786C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C18
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C18#FFFFFF#000000##FFFFFF
##786C181.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776905
Deuteranopia (green-blind)
#7A6D1E
Tritanopia (blue-blind)
#82645C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786c18;
/* rgb */ color: rgb(120, 108, 24);
/* oklch */ color: oklch(52.7% 0.101 100.7);
Tailwind
colors: {
  custom: {
    50: '#a2955d',
    500: '#786c18',
    950: '#000000',
  },
}
SCSS
$custom: #786c18;
$custom-light: #a2955d;
$custom-dark: #000000;
JSON
{
  "hex": "#786c18",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 24
  },
  "hsl": {
    "h": 52.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52709,
    "c": 0.10052,
    "h": 100.7
  },
  "luminance": 0.14784
}

Semantic roles & 50–950 ramp

primary
#786C18
secondary
#3F4DAD
accent
#54EA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786C18

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

Preview Lab → · Contrast checker → · Palette generator →

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