#786E28#786E28

#786E28 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.3% C 0.091 H 101.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#786E28
RGBrgb(120, 110, 40)
HSLhsl(53, 50%, 31%)
HSVhsv(53, 67%, 47%)
CMYKcmyk(0%, 8.3%, 66.7%, 52.9%)
CIE-LABlab(46.04, -5.22, 39.19)
CIE-LCHlch(46.04, 39.53, 97.59°)
OKLaboklab(53.31% -0.0176 0.0891)
OKLCHoklch(53.31% 0.091 101.2)
XYZxyz(13.7052, 15.2987, 4.2381)
Luminance0.1530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E28 #283278
analogous
#784628 #786E28 #5A7828
triadic
#786E28 #28786E #6E2878
tetradic
#786E28 #287846 #283278 #78285A
square
#786E28 #287846 #283278 #78285A
split-complementary
#786E28 #285A78 #462878
monochromatic
#1C1A09 #4A4419 #786E28 #A69837 #C6B854

Accessibility & contrast

On white

5.17
#786E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#786E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E28
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E28#FFFFFF#000000##FFFFFF
##786E281.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B20
Deuteranopia (green-blind)
#7B6F2C
Tritanopia (blue-blind)
#81665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e28;
/* rgb */ color: rgb(120, 110, 40);
/* oklch */ color: oklch(53.3% 0.091 101.2);
Tailwind
colors: {
  custom: {
    50: '#a19766',
    500: '#786e28',
    950: '#000000',
  },
}
SCSS
$custom: #786e28;
$custom-light: #a19766;
$custom-dark: #000000;
JSON
{
  "hex": "#786e28",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 40
  },
  "hsl": {
    "h": 52.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53305,
    "c": 0.09078,
    "h": 101.2
  },
  "luminance": 0.15298
}

Semantic roles & 50–950 ramp

primary
#786E28
secondary
#525DAA
accent
#60DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786E28

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

Preview Lab → · Contrast checker → · Palette generator →

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