#786A22#786A22

#786A22 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.092 H 98.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#786A22
RGBrgb(120, 106, 34)
HSLhsl(50, 56%, 30%)
HSVhsv(50, 72%, 47%)
CMYKcmyk(0%, 11.7%, 71.7%, 52.9%)
CIE-LABlab(44.83, -3.32, 40.67)
CIE-LCHlch(44.83, 40.81, 94.67°)
OKLaboklab(52.32% -0.0129 0.0911)
OKLCHoklch(52.32% 0.092 98.1)
XYZxyz(13.1891, 14.4173, 3.6012)
Luminance0.1442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A22 #223078
analogous
#783F22 #786A22 #5B7822
triadic
#786A22 #22786A #6A2278
tetradic
#786A22 #22783F #223078 #78225B
square
#786A22 #22783F #223078 #78225B
split-complementary
#786A22 #225B78 #3F2278
monochromatic
#191607 #484014 #786A22 #A89430 #CBB649

Accessibility & contrast

On white

5.41
#786A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#786A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A22
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A22#FFFFFF#000000##FFFFFF
##786A221.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756718
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a22;
/* rgb */ color: rgb(120, 106, 34);
/* oklch */ color: oklch(52.3% 0.092 98.1);
Tailwind
colors: {
  custom: {
    50: '#a29462',
    500: '#786a22',
    950: '#000000',
  },
}
SCSS
$custom: #786a22;
$custom-light: #a29462;
$custom-dark: #000000;
JSON
{
  "hex": "#786a22",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 34
  },
  "hsl": {
    "h": 50.233,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52324,
    "c": 0.09205,
    "h": 98.1
  },
  "luminance": 0.14417
}

Semantic roles & 50–950 ramp

primary
#786A22
secondary
#4B5AAB
accent
#61DF49
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786A22

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

Preview Lab → · Contrast checker → · Palette generator →

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