#786C17#786C17

#786C17 is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.7% C 0.101 H 100.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#786C17
RGBrgb(120, 108, 23)
HSLhsl(53, 68%, 28%)
HSVhsv(53, 81%, 47%)
CMYKcmyk(0%, 10%, 80.8%, 52.9%)
CIE-LABlab(45.33, -5.02, 45.58)
CIE-LCHlch(45.33, 45.85, 96.28°)
OKLaboklab(52.7% -0.019 0.0993)
OKLCHoklch(52.7% 0.101 100.8)
XYZxyz(13.2636, 14.7807, 2.9648)
Luminance0.1478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C17 #172378
analogous
#783B17 #786C17 #537817
triadic
#786C17 #17786C #6C1778
tetradic
#786C17 #17783B #172378 #781753
square
#786C17 #17783B #172378 #781753
split-complementary
#786C17 #175378 #3B1778
monochromatic
#1A1705 #453E0D #786C17 #AB9A21 #D8C332

Accessibility & contrast

On white

5.31
#786C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#786C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C17
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C17#FFFFFF#000000##FFFFFF
##786C171.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776904
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#82645C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786c17;
/* rgb */ color: rgb(120, 108, 23);
/* oklch */ color: oklch(52.7% 0.101 100.8);
Tailwind
colors: {
  custom: {
    50: '#a2955c',
    500: '#786c17',
    950: '#000000',
  },
}
SCSS
$custom: #786c17;
$custom-light: #a2955c;
$custom-dark: #000000;
JSON
{
  "hex": "#786c17",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 23
  },
  "hsl": {
    "h": 52.577,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52703,
    "c": 0.10109,
    "h": 100.8
  },
  "luminance": 0.1478
}

Semantic roles & 50–950 ramp

primary
#786C17
secondary
#3E4BAD
accent
#53EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786C17

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

Preview Lab → · Contrast checker → · Palette generator →

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