#786E22#786E22

#786E22 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.2% C 0.096 H 101.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#786E22
RGBrgb(120, 110, 34)
HSLhsl(53, 56%, 30%)
HSVhsv(53, 72%, 47%)
CMYKcmyk(0%, 8.3%, 71.7%, 52.9%)
CIE-LABlab(45.99, -5.61, 41.86)
CIE-LCHlch(45.99, 42.23, 97.63°)
OKLaboklab(53.25% -0.0194 0.0936)
OKLCHoklch(53.25% 0.096 101.7)
XYZxyz(13.6110, 15.2610, 3.7418)
Luminance0.1526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E22 #222C78
analogous
#784322 #786E22 #577822
triadic
#786E22 #22786E #6E2278
tetradic
#786E22 #227843 #222C78 #782257
square
#786E22 #227843 #222C78 #782257
split-complementary
#786E22 #225778 #432278
monochromatic
#191707 #484214 #786E22 #A89A30 #CBBC49

Accessibility & contrast

On white

5.18
#786E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#786E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E22
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E22#FFFFFF#000000##FFFFFF
##786E221.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B17
Deuteranopia (green-blind)
#7B6F27
Tritanopia (blue-blind)
#81665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e22;
/* rgb */ color: rgb(120, 110, 34);
/* oklch */ color: oklch(53.2% 0.096 101.7);
Tailwind
colors: {
  custom: {
    50: '#a29762',
    500: '#786e22',
    950: '#000000',
  },
}
SCSS
$custom: #786e22;
$custom-light: #a29762;
$custom-dark: #000000;
JSON
{
  "hex": "#786e22",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 34
  },
  "hsl": {
    "h": 53.023,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53248,
    "c": 0.09563,
    "h": 101.7
  },
  "luminance": 0.1526
}

Semantic roles & 50–950 ramp

primary
#786E22
secondary
#4B56AB
accent
#5ADF49
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #786E22

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

Preview Lab → · Contrast checker → · Palette generator →

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