#786D24#786D24

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

Color values

HEX#786D24
RGBrgb(120, 109, 36)
HSLhsl(52, 54%, 31%)
HSVhsv(52, 70%, 47%)
CMYKcmyk(0%, 9.2%, 70%, 52.9%)
CIE-LABlab(45.71, -4.92, 40.69)
CIE-LCHlch(45.71, 40.98, 96.89°)
OKLaboklab(53.03% -0.0172 0.0915)
OKLCHoklch(53.03% 0.093 100.6)
XYZxyz(13.5334, 15.0583, 3.8624)
Luminance0.1506 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D24 #242F78
analogous
#784324 #786D24 #597824
triadic
#786D24 #24786D #6D2478
tetradic
#786D24 #247843 #242F78 #782459
square
#786D24 #247843 #242F78 #782459
split-complementary
#786D24 #245978 #432478
monochromatic
#1A1708 #494216 #786D24 #A79832 #CAB94D

Accessibility & contrast

On white

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

On black

4.01
#786D24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##786D24#FFFFFF#000000##FFFFFF
##786D241.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786d24;
/* rgb */ color: rgb(120, 109, 36);
/* oklch */ color: oklch(53.0% 0.093 100.6);
Tailwind
colors: {
  custom: {
    50: '#a29663',
    500: '#786d24',
    950: '#000000',
  },
}
SCSS
$custom: #786d24;
$custom-light: #a29663;
$custom-dark: #000000;
JSON
{
  "hex": "#786d24",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 36
  },
  "hsl": {
    "h": 52.143,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53034,
    "c": 0.09314,
    "h": 100.6
  },
  "luminance": 0.15058
}

Semantic roles & 50–950 ramp

primary
#786D24
secondary
#4D59AB
accent
#5EDD4B
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #786D24

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

Preview Lab → · Contrast checker → · Palette generator →

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