#786A17#786A17

#786A17 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.2% C 0.099 H 99.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#786A17
RGBrgb(120, 106, 23)
HSLhsl(51, 68%, 28%)
HSVhsv(51, 81%, 47%)
CMYKcmyk(0%, 11.7%, 80.8%, 52.9%)
CIE-LABlab(44.75, -3.88, 45.05)
CIE-LCHlch(44.75, 45.21, 94.92°)
OKLaboklab(52.24% -0.0157 0.0982)
OKLCHoklch(52.24% 0.099 99.1)
XYZxyz(13.0551, 14.3637, 2.8953)
Luminance0.1436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A17 #172578
analogous
#783917 #786A17 #557817
triadic
#786A17 #17786A #6A1778
tetradic
#786A17 #177839 #172578 #781755
square
#786A17 #177839 #172578 #781755
split-complementary
#786A17 #175578 #391778
monochromatic
#1A1705 #453D0D #786A17 #AB9721 #D8C032

Accessibility & contrast

On white

5.42
#786A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#786A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A17
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A17#FFFFFF#000000##FFFFFF
##786A171.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756704
Deuteranopia (green-blind)
#796C1D
Tritanopia (blue-blind)
#82615A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a17;
/* rgb */ color: rgb(120, 106, 23);
/* oklch */ color: oklch(52.2% 0.099 99.1);
Tailwind
colors: {
  custom: {
    50: '#a2945c',
    500: '#786a17',
    950: '#000000',
  },
}
SCSS
$custom: #786a17;
$custom-light: #a2945c;
$custom-dark: #000000;
JSON
{
  "hex": "#786a17",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 51.34,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52241,
    "c": 0.09942,
    "h": 99.1
  },
  "luminance": 0.14363
}

Semantic roles & 50–950 ramp

primary
#786A17
secondary
#3E4EAD
accent
#56EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786A17

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

Preview Lab → · Contrast checker → · Palette generator →

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