#786C16#786C16

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

Color values

HEX#786C16
RGBrgb(120, 108, 22)
HSLhsl(53, 69%, 28%)
HSVhsv(53, 82%, 47%)
CMYKcmyk(0%, 10%, 81.7%, 52.9%)
CIE-LABlab(45.33, -5.06, 45.92)
CIE-LCHlch(45.33, 46.20, 96.29°)
OKLaboklab(52.7% -0.0192 0.0998)
OKLCHoklch(52.7% 0.102 100.9)
XYZxyz(13.2538, 14.7768, 2.9130)
Luminance0.1478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C16 #162278
analogous
#783B16 #786C16 #537816
triadic
#786C16 #16786C #6C1678
tetradic
#786C16 #16783B #162278 #781653
square
#786C16 #16783B #162278 #781653
split-complementary
#786C16 #165378 #3B1678
monochromatic
#1A1705 #443D0D #786C16 #AC9B1F #D9C42F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786C16#FFFFFF#000000##FFFFFF
##786C161.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)
#776902
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786c16;
/* rgb */ color: rgb(120, 108, 22);
/* oklch */ color: oklch(52.7% 0.102 100.9);
Tailwind
colors: {
  custom: {
    50: '#a2955c',
    500: '#786c16',
    950: '#000000',
  },
}
SCSS
$custom: #786c16;
$custom-light: #a2955c;
$custom-dark: #000000;
JSON
{
  "hex": "#786c16",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 22
  },
  "hsl": {
    "h": 52.653,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52697,
    "c": 0.10164,
    "h": 100.9
  },
  "luminance": 0.14776
}

Semantic roles & 50–950 ramp

primary
#786C16
secondary
#3C4AAD
accent
#51EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786C16

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

Preview Lab → · Contrast checker → · Palette generator →

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