#786F1D#786F1D

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

Color values

HEX#786F1D
RGBrgb(120, 111, 29)
HSLhsl(54, 61%, 29%)
HSVhsv(54, 76%, 47%)
CMYKcmyk(0%, 7.5%, 75.8%, 52.9%)
CIE-LABlab(46.25, -6.45, 44.18)
CIE-LCHlch(46.25, 44.65, 98.30°)
OKLaboklab(53.44% -0.0223 0.0976)
OKLCHoklch(53.44% 0.1 102.9)
XYZxyz(13.6525, 15.4512, 3.4254)
Luminance0.1545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F1D #1D2678
analogous
#78421D #786F1D #54781D
triadic
#786F1D #1D786F #6F1D78
tetradic
#786F1D #1D7842 #1D2678 #781D54
square
#786F1D #1D7842 #1D2678 #781D54
split-complementary
#786F1D #1D5478 #421D78
monochromatic
#191706 #474111 #786F1D #A99D29 #D1C23F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786F1D#FFFFFF#000000##FFFFFF
##786F1D1.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)
#7A6B0E
Deuteranopia (green-blind)
#7C6F23
Tritanopia (blue-blind)
#82675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f1d;
/* rgb */ color: rgb(120, 111, 29);
/* oklch */ color: oklch(53.4% 0.100 102.9);
Tailwind
colors: {
  custom: {
    50: '#a2985f',
    500: '#786f1d',
    950: '#000000',
  },
}
SCSS
$custom: #786f1d;
$custom-light: #a2985f;
$custom-dark: #000000;
JSON
{
  "hex": "#786f1d",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 29
  },
  "hsl": {
    "h": 54.066,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5344,
    "c": 0.10012,
    "h": 102.9
  },
  "luminance": 0.15451
}

Semantic roles & 50–950 ramp

primary
#786F1D
secondary
#454FAC
accent
#53E444
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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