#786D16#786D16

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

Color values

HEX#786D16
RGBrgb(120, 109, 22)
HSLhsl(53, 69%, 28%)
HSVhsv(53, 82%, 47%)
CMYKcmyk(0%, 9.2%, 81.7%, 52.9%)
CIE-LABlab(45.62, -5.63, 46.18)
CIE-LCHlch(45.62, 46.52, 96.95°)
OKLaboklab(52.93% -0.0208 0.1004)
OKLCHoklch(52.93% 0.103 101.7)
XYZxyz(13.3598, 14.9889, 2.9483)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D16 #162178
analogous
#783C16 #786D16 #527816
triadic
#786D16 #16786D #6D1678
tetradic
#786D16 #16783C #162178 #781652
square
#786D16 #16783C #162178 #781652
split-complementary
#786D16 #165278 #3C1678
monochromatic
#1A1705 #443E0D #786D16 #AC9C1F #D9C62F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786D16#FFFFFF#000000##FFFFFF
##786D161.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)
#786901
Deuteranopia (green-blind)
#7B6E1D
Tritanopia (blue-blind)
#82655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d16;
/* rgb */ color: rgb(120, 109, 22);
/* oklch */ color: oklch(52.9% 0.102 101.7);
Tailwind
colors: {
  custom: {
    50: '#a2965c',
    500: '#786d16',
    950: '#000000',
  },
}
SCSS
$custom: #786d16;
$custom-light: #a2965c;
$custom-dark: #000000;
JSON
{
  "hex": "#786d16",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 22
  },
  "hsl": {
    "h": 53.265,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52929,
    "c": 0.1025,
    "h": 101.7
  },
  "luminance": 0.14988
}

Semantic roles & 50–950 ramp

primary
#786D16
secondary
#3C49AD
accent
#50EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786D16

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

Preview Lab → · Contrast checker → · Palette generator →

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