#786817#786817

#786817 is a mid, moderate yellow. Relative luminance 0.140; OKLCH L 51.8% C 0.098 H 97.3°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#786817
RGBrgb(120, 104, 23)
HSLhsl(50, 68%, 28%)
HSVhsv(50, 81%, 47%)
CMYKcmyk(0%, 13.3%, 80.8%, 52.9%)
CIE-LABlab(44.17, -2.72, 44.52)
CIE-LCHlch(44.17, 44.60, 93.50°)
OKLaboklab(51.78% -0.0125 0.097)
OKLCHoklch(51.78% 0.098 97.3)
XYZxyz(12.8514, 13.9562, 2.8274)
Luminance0.1396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786817 #172778
analogous
#783717 #786817 #577817
triadic
#786817 #177868 #681778
tetradic
#786817 #177837 #172778 #781757
square
#786817 #177837 #172778 #781757
split-complementary
#786817 #175778 #371778
monochromatic
#1A1605 #453B0D #786817 #AB9521 #D8BC32

Accessibility & contrast

On white

5.54
#786817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#786817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786817
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786817#FFFFFF#000000##FFFFFF
##7868171.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736505
Deuteranopia (green-blind)
#786B1D
Tritanopia (blue-blind)
#825F59
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #786817;
/* rgb */ color: rgb(120, 104, 23);
/* oklch */ color: oklch(51.8% 0.098 97.3);
Tailwind
colors: {
  custom: {
    50: '#a2925c',
    500: '#786817',
    950: '#000000',
  },
}
SCSS
$custom: #786817;
$custom-light: #a2925c;
$custom-dark: #000000;
JSON
{
  "hex": "#786817",
  "rgb": {
    "r": 120,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 50.103,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51781,
    "c": 0.09783,
    "h": 97.3
  },
  "luminance": 0.13956
}

Semantic roles & 50–950 ramp

primary
#786817
secondary
#3E50AD
accent
#5AEB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #786817

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

Preview Lab → · Contrast checker → · Palette generator →

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