#786B20#786B20

#786B20 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.5% C 0.094 H 99.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#786B20
RGBrgb(120, 107, 32)
HSLhsl(51, 58%, 30%)
HSVhsv(51, 73%, 47%)
CMYKcmyk(0%, 10.8%, 73.3%, 52.9%)
CIE-LABlab(45.10, -4.01, 41.83)
CIE-LCHlch(45.10, 42.02, 95.48°)
OKLaboklab(52.54% -0.0151 0.0932)
OKLCHoklch(52.54% 0.094 99.2)
XYZxyz(13.2648, 14.6134, 3.4882)
Luminance0.1461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B20 #202D78
analogous
#783F20 #786B20 #597820
triadic
#786B20 #20786B #6B2078
tetradic
#786B20 #20783F #202D78 #782059
square
#786B20 #20783F #202D78 #782059
split-complementary
#786B20 #205978 #3F2078
monochromatic
#181606 #484013 #786B20 #A8962D #CDB945

Accessibility & contrast

On white

5.35
#786B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#786B20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B20
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B20#FFFFFF#000000##FFFFFF
##786B201.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766815
Deuteranopia (green-blind)
#796D25
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b20;
/* rgb */ color: rgb(120, 107, 32);
/* oklch */ color: oklch(52.5% 0.094 99.2);
Tailwind
colors: {
  custom: {
    50: '#a29561',
    500: '#786b20',
    950: '#000000',
  },
}
SCSS
$custom: #786b20;
$custom-light: #a29561;
$custom-dark: #000000;
JSON
{
  "hex": "#786b20",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 32
  },
  "hsl": {
    "h": 51.136,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52537,
    "c": 0.09441,
    "h": 99.2
  },
  "luminance": 0.14613
}

Semantic roles & 50–950 ramp

primary
#786B20
secondary
#4857AB
accent
#5DE147
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786B20

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

Preview Lab → · Contrast checker → · Palette generator →

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