#786217#786217

#786217 is a mid, moderate yellow. Relative luminance 0.128; OKLCH L 50.4% C 0.094 H 91.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#786217
RGBrgb(120, 98, 23)
HSLhsl(46, 68%, 28%)
HSVhsv(46, 81%, 47%)
CMYKcmyk(0%, 18.3%, 80.8%, 52.9%)
CIE-LABlab(42.45, 0.77, 42.93)
CIE-LCHlch(42.45, 42.94, 88.98°)
OKLaboklab(50.42% -0.0026 0.0936)
OKLCHoklch(50.42% 0.094 91.6)
XYZxyz(12.2688, 12.7911, 2.6332)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786217 #172D78
analogous
#783217 #786217 #5D7817
triadic
#786217 #177862 #621778
tetradic
#786217 #177832 #172D78 #78175D
square
#786217 #177832 #172D78 #78175D
split-complementary
#786217 #175D78 #321778
monochromatic
#1A1505 #45380D #786217 #AB8C21 #D8B232

Accessibility & contrast

On white

5.90
#786217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#786217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786217
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786217#FFFFFF#000000##FFFFFF
##7862171.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6108
Deuteranopia (green-blind)
#73671C
Tritanopia (blue-blind)
#825954
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #786217;
/* rgb */ color: rgb(120, 98, 23);
/* oklch */ color: oklch(50.4% 0.094 91.6);
Tailwind
colors: {
  custom: {
    50: '#a38e5b',
    500: '#786217',
    950: '#000000',
  },
}
SCSS
$custom: #786217;
$custom-light: #a38e5b;
$custom-dark: #000000;
JSON
{
  "hex": "#786217",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 46.392,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50419,
    "c": 0.09367,
    "h": 91.6
  },
  "luminance": 0.1279
}

Semantic roles & 50–950 ramp

primary
#786217
secondary
#3E57AD
accent
#64EB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786217

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

Preview Lab → · Contrast checker → · Palette generator →

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