#786F45#786F45

#786F45 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 53.9% C 0.061 H 97.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#786F45
RGBrgb(120, 111, 69)
HSLhsl(49, 27%, 37%)
HSVhsv(49, 43%, 47%)
CMYKcmyk(0%, 7.5%, 42.5%, 52.9%)
CIE-LABlab(46.70, -3.07, 24.64)
CIE-LCHlch(46.70, 24.83, 97.09°)
OKLaboklab(53.95% -0.008 0.0602)
OKLCHoklch(53.95% 0.061 97.6)
XYZxyz(14.5047, 15.7921, 7.9132)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F45 #454E78
analogous
#785645 #786F45 #687845
triadic
#786F45 #45786F #6F4578
tetradic
#786F45 #457856 #454E78 #784568
square
#786F45 #457856 #454E78 #784568
split-complementary
#786F45 #456878 #564578
monochromatic
#2A2718 #514B2F #786F45 #9F935B #B6AD81

Accessibility & contrast

On white

5.05
#786F45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#786F45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F45
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F45#FFFFFF#000000##FFFFFF
##786F451.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776D42
Deuteranopia (green-blind)
#797047
Tritanopia (blue-blind)
#7F6965
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #786f45;
/* rgb */ color: rgb(120, 111, 69);
/* oklch */ color: oklch(53.9% 0.061 97.6);
Tailwind
colors: {
  custom: {
    50: '#a09879',
    500: '#786f45',
    950: '#000000',
  },
}
SCSS
$custom: #786f45;
$custom-light: #a09879;
$custom-dark: #000000;
JSON
{
  "hex": "#786f45",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 69
  },
  "hsl": {
    "h": 49.412,
    "s": 26.984,
    "l": 37.059
  },
  "oklch": {
    "l": 0.53947,
    "c": 0.06077,
    "h": 97.6
  },
  "luminance": 0.15792
}

Semantic roles & 50–950 ramp

primary
#786F45
secondary
#777EA2
accent
#75C364
background
#F9F9F7
surface
#F2F2ED
border
#CCCCC8
text
#0F0D09
muted
#7E7E7B

Preview Lab

Preview with #786F45

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

Preview Lab → · Contrast checker → · Palette generator →

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