#786D21#786D21

#786D21 is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 53.0% C 0.095 H 100.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#786D21
RGBrgb(120, 109, 33)
HSLhsl(52, 57%, 30%)
HSVhsv(52, 73%, 47%)
CMYKcmyk(0%, 9.2%, 72.5%, 52.9%)
CIE-LABlab(45.69, -5.10, 41.99)
CIE-LCHlch(45.69, 42.29, 96.92°)
OKLaboklab(53.01% -0.0181 0.0937)
OKLCHoklch(53.01% 0.095 100.9)
XYZxyz(13.4895, 15.0408, 3.6312)
Luminance0.1504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D21 #212C78
analogous
#784221 #786D21 #577821
triadic
#786D21 #21786D #6D2178
tetradic
#786D21 #217842 #212C78 #782157
square
#786D21 #217842 #212C78 #782157
split-complementary
#786D21 #215778 #422178
monochromatic
#181607 #484114 #786D21 #A8992E #CCBC47

Accessibility & contrast

On white

5.24
#786D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #786D21
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D21#FFFFFF#000000##FFFFFF
##786D211.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A16
Deuteranopia (green-blind)
#7B6E26
Tritanopia (blue-blind)
#81655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d21;
/* rgb */ color: rgb(120, 109, 33);
/* oklch */ color: oklch(53.0% 0.095 100.9);
Tailwind
colors: {
  custom: {
    50: '#a29661',
    500: '#786d21',
    950: '#000000',
  },
}
SCSS
$custom: #786d21;
$custom-light: #a29661;
$custom-dark: #000000;
JSON
{
  "hex": "#786d21",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 33
  },
  "hsl": {
    "h": 52.414,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.53008,
    "c": 0.09545,
    "h": 100.9
  },
  "luminance": 0.1504
}

Semantic roles & 50–950 ramp

primary
#786D21
secondary
#4A56AB
accent
#5BE048
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786D21

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

Preview Lab → · Contrast checker → · Palette generator →

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