#786F20#786F20

#786F20 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.5% C 0.098 H 102.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#786F20
RGBrgb(120, 111, 32)
HSLhsl(54, 58%, 30%)
HSVhsv(54, 73%, 47%)
CMYKcmyk(0%, 7.5%, 73.3%, 52.9%)
CIE-LABlab(46.27, -6.29, 42.99)
CIE-LCHlch(46.27, 43.44, 98.32°)
OKLaboklab(53.46% -0.0216 0.0956)
OKLCHoklch(53.46% 0.098 102.7)
XYZxyz(13.6915, 15.4668, 3.6304)
Luminance0.1547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F20 #202978
analogous
#784320 #786F20 #557820
triadic
#786F20 #20786F #6F2078
tetradic
#786F20 #207843 #202978 #782055
square
#786F20 #207843 #202978 #782055
split-complementary
#786F20 #205578 #432078
monochromatic
#181606 #484213 #786F20 #A89C2D #CDBF45

Accessibility & contrast

On white

5.13
#786F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#786F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F20
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F20#FFFFFF#000000##FFFFFF
##786F201.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B14
Deuteranopia (green-blind)
#7C6F25
Tritanopia (blue-blind)
#81675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f20;
/* rgb */ color: rgb(120, 111, 32);
/* oklch */ color: oklch(53.5% 0.098 102.7);
Tailwind
colors: {
  custom: {
    50: '#a29861',
    500: '#786f20',
    950: '#000000',
  },
}
SCSS
$custom: #786f20;
$custom-light: #a29861;
$custom-dark: #000000;
JSON
{
  "hex": "#786f20",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 32
  },
  "hsl": {
    "h": 53.864,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53463,
    "c": 0.09804,
    "h": 102.7
  },
  "luminance": 0.15466
}

Semantic roles & 50–950 ramp

primary
#786F20
secondary
#4853AB
accent
#56E147
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786F20

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

Preview Lab → · Contrast checker → · Palette generator →

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