#786B1E#786B1E

#786B1E is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.5% C 0.096 H 99.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#786B1E
RGBrgb(120, 107, 30)
HSLhsl(51, 60%, 29%)
HSVhsv(51, 75%, 47%)
CMYKcmyk(0%, 10.8%, 75%, 52.9%)
CIE-LABlab(45.09, -4.12, 42.65)
CIE-LCHlch(45.09, 42.85, 95.51°)
OKLaboklab(52.52% -0.0156 0.0946)
OKLCHoklch(52.52% 0.096 99.4)
XYZxyz(13.2384, 14.6028, 3.3494)
Luminance0.1460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B1E #1E2B78
analogous
#783E1E #786B1E #58781E
triadic
#786B1E #1E786B #6B1E78
tetradic
#786B1E #1E783E #1E2B78 #781E58
square
#786B1E #1E783E #1E2B78 #781E58
split-complementary
#786B1E #1E5878 #3E1E78
monochromatic
#181606 #473F12 #786B1E #A9972A #CFBB41

Accessibility & contrast

On white

5.36
#786B1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#786B1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B1E
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B1E#FFFFFF#000000##FFFFFF
##786B1E1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766812
Deuteranopia (green-blind)
#796D23
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b1e;
/* rgb */ color: rgb(120, 107, 30);
/* oklch */ color: oklch(52.5% 0.096 99.4);
Tailwind
colors: {
  custom: {
    50: '#a2955f',
    500: '#786b1e',
    950: '#000000',
  },
}
SCSS
$custom: #786b1e;
$custom-light: #a2955f;
$custom-dark: #000000;
JSON
{
  "hex": "#786b1e",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 30
  },
  "hsl": {
    "h": 51.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52521,
    "c": 0.09584,
    "h": 99.4
  },
  "luminance": 0.14602
}

Semantic roles & 50–950 ramp

primary
#786B1E
secondary
#4655AC
accent
#5CE345
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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