#786E17#786E17

#786E17 is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.103 H 102.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#786E17
RGBrgb(120, 110, 23)
HSLhsl(54, 68%, 28%)
HSVhsv(54, 81%, 47%)
CMYKcmyk(0%, 8.3%, 80.8%, 52.9%)
CIE-LABlab(45.92, -6.16, 46.11)
CIE-LCHlch(45.92, 46.52, 97.60°)
OKLaboklab(53.17% -0.0221 0.1004)
OKLCHoklch(53.17% 0.103 102.4)
XYZxyz(13.4769, 15.2074, 3.0359)
Luminance0.1521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E17 #172178
analogous
#783D17 #786E17 #527817
triadic
#786E17 #17786E #6E1778
tetradic
#786E17 #17783D #172178 #781752
square
#786E17 #17783D #172178 #781752
split-complementary
#786E17 #175278 #3D1778
monochromatic
#1A1805 #453F0D #786E17 #AB9D21 #D8C732

Accessibility & contrast

On white

5.20
#786E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#786E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E17
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E17#FFFFFF#000000##FFFFFF
##786E171.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A03
Deuteranopia (green-blind)
#7C6F1E
Tritanopia (blue-blind)
#82665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e17;
/* rgb */ color: rgb(120, 110, 23);
/* oklch */ color: oklch(53.2% 0.103 102.4);
Tailwind
colors: {
  custom: {
    50: '#a2975c',
    500: '#786e17',
    950: '#000000',
  },
}
SCSS
$custom: #786e17;
$custom-light: #a2975c;
$custom-dark: #000000;
JSON
{
  "hex": "#786e17",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 23
  },
  "hsl": {
    "h": 53.814,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53167,
    "c": 0.10285,
    "h": 102.4
  },
  "luminance": 0.15207
}

Semantic roles & 50–950 ramp

primary
#786E17
secondary
#3E49AD
accent
#4FEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786E17

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

Preview Lab → · Contrast checker → · Palette generator →

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