#786A1C#786A1C

#786A1C is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.096 H 98.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#786A1C
RGBrgb(120, 106, 28)
HSLhsl(51, 62%, 29%)
HSVhsv(51, 77%, 47%)
CMYKcmyk(0%, 11.7%, 76.7%, 52.9%)
CIE-LABlab(44.78, -3.65, 43.17)
CIE-LCHlch(44.78, 43.33, 94.83°)
OKLaboklab(52.28% -0.0145 0.0952)
OKLCHoklch(52.28% 0.096 98.7)
XYZxyz(13.1100, 14.3856, 3.1845)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A1C #1C2A78
analogous
#783C1C #786A1C #58781C
triadic
#786A1C #1C786A #6A1C78
tetradic
#786A1C #1C783C #1C2A78 #781C58
square
#786A1C #1C783C #1C2A78 #781C58
split-complementary
#786A1C #1C5878 #3C1C78
monochromatic
#191606 #463E10 #786A1C #AA9628 #D2BB3D

Accessibility & contrast

On white

5.42
#786A1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#786A1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A1C
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A1C#FFFFFF#000000##FFFFFF
##786A1C1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670E
Deuteranopia (green-blind)
#796C21
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a1c;
/* rgb */ color: rgb(120, 106, 28);
/* oklch */ color: oklch(52.3% 0.096 98.7);
Tailwind
colors: {
  custom: {
    50: '#a2945e',
    500: '#786a1c',
    950: '#000000',
  },
}
SCSS
$custom: #786a1c;
$custom-light: #a2945e;
$custom-dark: #000000;
JSON
{
  "hex": "#786a1c",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 28
  },
  "hsl": {
    "h": 50.87,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52275,
    "c": 0.09634,
    "h": 98.7
  },
  "luminance": 0.14385
}

Semantic roles & 50–950 ramp

primary
#786A1C
secondary
#4454AC
accent
#5BE543
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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