#786B17#786B17

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

Color values

HEX#786B17
RGBrgb(120, 107, 23)
HSLhsl(52, 68%, 28%)
HSVhsv(52, 81%, 47%)
CMYKcmyk(0%, 10.8%, 80.8%, 52.9%)
CIE-LABlab(45.04, -4.45, 45.31)
CIE-LCHlch(45.04, 45.53, 95.61°)
OKLaboklab(52.47% -0.0173 0.0987)
OKLCHoklch(52.47% 0.1 100)
XYZxyz(13.1587, 14.5710, 2.9298)
Luminance0.1457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B17 #172478
analogous
#783A17 #786B17 #547817
triadic
#786B17 #17786B #6B1778
tetradic
#786B17 #17783A #172478 #781754
square
#786B17 #17783A #172478 #781754
split-complementary
#786B17 #175478 #3A1778
monochromatic
#1A1705 #453D0D #786B17 #AB9921 #D8C132

Accessibility & contrast

On white

5.37
#786B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#786B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B17
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B17#FFFFFF#000000##FFFFFF
##786B171.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b17;
/* rgb */ color: rgb(120, 107, 23);
/* oklch */ color: oklch(52.5% 0.100 100.0);
Tailwind
colors: {
  custom: {
    50: '#a2955c',
    500: '#786b17',
    950: '#000000',
  },
}
SCSS
$custom: #786b17;
$custom-light: #a2955c;
$custom-dark: #000000;
JSON
{
  "hex": "#786b17",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 23
  },
  "hsl": {
    "h": 51.959,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52471,
    "c": 0.10024,
    "h": 100
  },
  "luminance": 0.1457
}

Semantic roles & 50–950 ramp

primary
#786B17
secondary
#3E4DAD
accent
#54EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786B17

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

Preview Lab → · Contrast checker → · Palette generator →

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