#786517#786517

#786517 is a mid, moderate yellow. Relative luminance 0.134; OKLCH L 51.1% C 0.096 H 94.5°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#786517
RGBrgb(120, 101, 23)
HSLhsl(48, 68%, 28%)
HSVhsv(48, 81%, 47%)
CMYKcmyk(0%, 15.8%, 80.8%, 52.9%)
CIE-LABlab(43.31, -0.99, 43.72)
CIE-LCHlch(43.31, 43.74, 91.29°)
OKLaboklab(51.1% -0.0075 0.0953)
OKLCHoklch(51.1% 0.096 94.5)
XYZxyz(12.5548, 13.3630, 2.7285)
Luminance0.1336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786517 #172A78
analogous
#783417 #786517 #5A7817
triadic
#786517 #177865 #651778
tetradic
#786517 #177834 #172A78 #78175A
square
#786517 #177834 #172A78 #78175A
split-complementary
#786517 #175A78 #341778
monochromatic
#1A1605 #453A0D #786517 #AB9021 #D8B732

Accessibility & contrast

On white

5.72
#786517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#786517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786517
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786517#FFFFFF#000000##FFFFFF
##7865171.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716307
Deuteranopia (green-blind)
#75691C
Tritanopia (blue-blind)
#825C56
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #786517;
/* rgb */ color: rgb(120, 101, 23);
/* oklch */ color: oklch(51.1% 0.096 94.5);
Tailwind
colors: {
  custom: {
    50: '#a3905b',
    500: '#786517',
    950: '#000000',
  },
}
SCSS
$custom: #786517;
$custom-light: #a3905b;
$custom-dark: #000000;
JSON
{
  "hex": "#786517",
  "rgb": {
    "r": 120,
    "g": 101,
    "b": 23
  },
  "hsl": {
    "h": 48.247,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51097,
    "c": 0.09564,
    "h": 94.5
  },
  "luminance": 0.13362
}

Semantic roles & 50–950 ramp

primary
#786517
secondary
#3E53AD
accent
#5FEB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786517

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

Preview Lab → · Contrast checker → · Palette generator →

#786517 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva