#786815#786815

#786815 is a mid, moderate yellow. Relative luminance 0.139; OKLCH L 51.8% C 0.099 H 97.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#786815
RGBrgb(120, 104, 21)
HSLhsl(50, 70%, 28%)
HSVhsv(50, 83%, 47%)
CMYKcmyk(0%, 13.3%, 82.5%, 52.9%)
CIE-LABlab(44.16, -2.80, 45.22)
CIE-LCHlch(44.16, 45.30, 93.55°)
OKLaboklab(51.77% -0.0129 0.0981)
OKLCHoklch(51.77% 0.099 97.5)
XYZxyz(12.8321, 13.9485, 2.7258)
Luminance0.1395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786815 #152578
analogous
#783615 #786815 #567815
triadic
#786815 #157868 #681578
tetradic
#786815 #157836 #152578 #781556
square
#786815 #157836 #152578 #781556
split-complementary
#786815 #155678 #361578
monochromatic
#1A1705 #443B0C #786815 #AC951E #DABE2D

Accessibility & contrast

On white

5.54
#786815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#786815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786815
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786815#FFFFFF#000000##FFFFFF
##7868151.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736502
Deuteranopia (green-blind)
#786B1B
Tritanopia (blue-blind)
#825F59
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #786815;
/* rgb */ color: rgb(120, 104, 21);
/* oklch */ color: oklch(51.8% 0.099 97.5);
Tailwind
colors: {
  custom: {
    50: '#a3925b',
    500: '#786815',
    950: '#000000',
  },
}
SCSS
$custom: #786815;
$custom-light: #a3925b;
$custom-dark: #000000;
JSON
{
  "hex": "#786815",
  "rgb": {
    "r": 120,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 50.303,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.51769,
    "c": 0.09893,
    "h": 97.5
  },
  "luminance": 0.13948
}

Semantic roles & 50–950 ramp

primary
#786815
secondary
#3B4EAE
accent
#58ED3B
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #786815

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

Preview Lab → · Contrast checker → · Palette generator →

#786815 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva