#786A15#786A15

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

Color values

HEX#786A15
RGBrgb(120, 106, 21)
HSLhsl(52, 70%, 28%)
HSVhsv(52, 83%, 47%)
CMYKcmyk(0%, 11.7%, 82.5%, 52.9%)
CIE-LABlab(44.74, -3.95, 45.73)
CIE-LCHlch(44.74, 45.90, 94.94°)
OKLaboklab(52.23% -0.0161 0.0992)
OKLCHoklch(52.23% 0.101 99.2)
XYZxyz(13.0358, 14.3559, 2.7937)
Luminance0.1436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A15 #152378
analogous
#783815 #786A15 #557815
triadic
#786A15 #15786A #6A1578
tetradic
#786A15 #157838 #152378 #781555
square
#786A15 #157838 #152378 #781555
split-complementary
#786A15 #155578 #381578
monochromatic
#1A1705 #443C0C #786A15 #AC981E #DAC22D

Accessibility & contrast

On white

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

On black

3.87
#786A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##786A15#FFFFFF#000000##FFFFFF
##786A151.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756701
Deuteranopia (green-blind)
#796C1B
Tritanopia (blue-blind)
#82615A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a15;
/* rgb */ color: rgb(120, 106, 21);
/* oklch */ color: oklch(52.2% 0.101 99.2);
Tailwind
colors: {
  custom: {
    50: '#a3945b',
    500: '#786a15',
    950: '#000000',
  },
}
SCSS
$custom: #786a15;
$custom-light: #a3945b;
$custom-dark: #000000;
JSON
{
  "hex": "#786a15",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 21
  },
  "hsl": {
    "h": 51.515,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.52228,
    "c": 0.10051,
    "h": 99.2
  },
  "luminance": 0.14355
}

Semantic roles & 50–950 ramp

primary
#786A15
secondary
#3B4BAE
accent
#54ED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #786A15

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

Preview Lab → · Contrast checker → · Palette generator →

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