#786D17#786D17

#786D17 is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 52.9% C 0.102 H 101.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#786D17
RGBrgb(120, 109, 23)
HSLhsl(53, 68%, 28%)
HSVhsv(53, 81%, 47%)
CMYKcmyk(0%, 9.2%, 80.8%, 52.9%)
CIE-LABlab(45.62, -5.59, 45.84)
CIE-LCHlch(45.62, 46.18, 96.95°)
OKLaboklab(52.94% -0.0205 0.0999)
OKLCHoklch(52.94% 0.102 101.6)
XYZxyz(13.3697, 14.9928, 3.0001)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D17 #172278
analogous
#783C17 #786D17 #527817
triadic
#786D17 #17786D #6D1778
tetradic
#786D17 #17783C #172278 #781752
square
#786D17 #17783C #172278 #781752
split-complementary
#786D17 #175278 #3C1778
monochromatic
#1A1705 #453E0D #786D17 #AB9C21 #D8C532

Accessibility & contrast

On white

5.25
#786D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#786D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786D17
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D17#FFFFFF#000000##FFFFFF
##786D171.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786903
Deuteranopia (green-blind)
#7B6E1E
Tritanopia (blue-blind)
#82655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d17;
/* rgb */ color: rgb(120, 109, 23);
/* oklch */ color: oklch(52.9% 0.102 101.6);
Tailwind
colors: {
  custom: {
    50: '#a2965c',
    500: '#786d17',
    950: '#000000',
  },
}
SCSS
$custom: #786d17;
$custom-light: #a2965c;
$custom-dark: #000000;
JSON
{
  "hex": "#786d17",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 53.196,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52935,
    "c": 0.10196,
    "h": 101.6
  },
  "luminance": 0.14992
}

Semantic roles & 50–950 ramp

primary
#786D17
secondary
#3E4AAD
accent
#51EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786D17

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

Preview Lab → · Contrast checker → · Palette generator →

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