#786D28#786D28

#786D28 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.090 H 100.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#786D28
RGBrgb(120, 109, 40)
HSLhsl(52, 50%, 31%)
HSVhsv(52, 67%, 47%)
CMYKcmyk(0%, 9.2%, 66.7%, 52.9%)
CIE-LABlab(45.75, -4.65, 38.88)
CIE-LCHlch(45.75, 39.15, 96.83°)
OKLaboklab(53.07% -0.0159 0.0884)
OKLCHoklch(53.07% 0.09 100.2)
XYZxyz(13.5979, 15.0841, 4.2023)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D28 #283378
analogous
#784528 #786D28 #5B7828
triadic
#786D28 #28786D #6D2878
tetradic
#786D28 #287845 #283378 #78285B
square
#786D28 #287845 #283378 #78285B
split-complementary
#786D28 #285B78 #452878
monochromatic
#1C1A09 #4A4319 #786D28 #A69737 #C6B654

Accessibility & contrast

On white

5.23
#786D28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#786D28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786D28
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D28#FFFFFF#000000##FFFFFF
##786D281.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A20
Deuteranopia (green-blind)
#7A6E2C
Tritanopia (blue-blind)
#81655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d28;
/* rgb */ color: rgb(120, 109, 40);
/* oklch */ color: oklch(53.1% 0.090 100.2);
Tailwind
colors: {
  custom: {
    50: '#a19665',
    500: '#786d28',
    950: '#000000',
  },
}
SCSS
$custom: #786d28;
$custom-light: #a19665;
$custom-dark: #000000;
JSON
{
  "hex": "#786d28",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 40
  },
  "hsl": {
    "h": 51.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53073,
    "c": 0.08983,
    "h": 100.2
  },
  "luminance": 0.15084
}

Semantic roles & 50–950 ramp

primary
#786D28
secondary
#525EAA
accent
#61DA4E
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786D28

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

Preview Lab → · Contrast checker → · Palette generator →

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