#786E1F#786E1F

#786E1F is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.098 H 101.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786E1F
RGBrgb(120, 110, 31)
HSLhsl(53, 59%, 30%)
HSVhsv(53, 74%, 47%)
CMYKcmyk(0%, 8.3%, 74.2%, 52.9%)
CIE-LABlab(45.97, -5.78, 43.10)
CIE-LCHlch(45.97, 43.49, 97.63°)
OKLaboklab(53.22% -0.0202 0.0957)
OKLCHoklch(53.22% 0.098 101.9)
XYZxyz(13.5696, 15.2444, 3.5238)
Luminance0.1524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E1F #1F2978
analogous
#78411F #786E1F #56781F
triadic
#786E1F #1F786E #6E1F78
tetradic
#786E1F #1F7841 #1F2978 #781F56
square
#786E1F #1F7841 #1F2978 #781F56
split-complementary
#786E1F #1F5678 #411F78
monochromatic
#181606 #474112 #786E1F #A99B2C #CEBF43

Accessibility & contrast

On white

5.19
#786E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#786E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E1F
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E1F#FFFFFF#000000##FFFFFF
##786E1F1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A12
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#82665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e1f;
/* rgb */ color: rgb(120, 110, 31);
/* oklch */ color: oklch(53.2% 0.098 101.9);
Tailwind
colors: {
  custom: {
    50: '#a29760',
    500: '#786e1f',
    950: '#000000',
  },
}
SCSS
$custom: #786e1f;
$custom-light: #a29760;
$custom-dark: #000000;
JSON
{
  "hex": "#786e1f",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 31
  },
  "hsl": {
    "h": 53.258,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53223,
    "c": 0.09781,
    "h": 101.9
  },
  "luminance": 0.15244
}

Semantic roles & 50–950 ramp

primary
#786E1F
secondary
#4753AB
accent
#57E246
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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