#786717#786717

#786717 is a mid, moderate yellow. Relative luminance 0.138; OKLCH L 51.6% C 0.097 H 96.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#786717
RGBrgb(120, 103, 23)
HSLhsl(49, 68%, 28%)
HSVhsv(49, 81%, 47%)
CMYKcmyk(0%, 14.2%, 80.8%, 52.9%)
CIE-LABlab(43.88, -2.15, 44.25)
CIE-LCHlch(43.88, 44.30, 92.78°)
OKLaboklab(51.55% -0.0108 0.0965)
OKLCHoklch(51.55% 0.097 96.4)
XYZxyz(12.7513, 13.7561, 2.7940)
Luminance0.1376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786717 #172878
analogous
#783717 #786717 #587817
triadic
#786717 #177867 #671778
tetradic
#786717 #177837 #172878 #781758
square
#786717 #177837 #172878 #781758
split-complementary
#786717 #175878 #371778
monochromatic
#1A1605 #453B0D #786717 #AB9321 #D8BB32

Accessibility & contrast

On white

5.60
#786717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#786717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786717
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786717#FFFFFF#000000##FFFFFF
##7867171.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726506
Deuteranopia (green-blind)
#776A1C
Tritanopia (blue-blind)
#825E58
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #786717;
/* rgb */ color: rgb(120, 103, 23);
/* oklch */ color: oklch(51.6% 0.097 96.4);
Tailwind
colors: {
  custom: {
    50: '#a2925b',
    500: '#786717',
    950: '#000000',
  },
}
SCSS
$custom: #786717;
$custom-light: #a2925b;
$custom-dark: #000000;
JSON
{
  "hex": "#786717",
  "rgb": {
    "r": 120,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 49.485,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51552,
    "c": 0.09708,
    "h": 96.4
  },
  "luminance": 0.13755
}

Semantic roles & 50–950 ramp

primary
#786717
secondary
#3E51AD
accent
#5CEB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786717

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

Preview Lab → · Contrast checker → · Palette generator →

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