#786F17#786F17

#786F17 is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.4% C 0.104 H 103.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#786F17
RGBrgb(120, 111, 23)
HSLhsl(54, 68%, 28%)
HSVhsv(54, 81%, 47%)
CMYKcmyk(0%, 7.5%, 80.8%, 52.9%)
CIE-LABlab(46.21, -6.72, 46.37)
CIE-LCHlch(46.21, 46.86, 98.25°)
OKLaboklab(53.4% -0.0237 0.101)
OKLCHoklch(53.4% 0.104 103.2)
XYZxyz(13.5854, 15.4244, 3.0720)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F17 #172078
analogous
#783E17 #786F17 #507817
triadic
#786F17 #17786F #6F1778
tetradic
#786F17 #17783E #172078 #781750
square
#786F17 #17783E #172078 #781750
split-complementary
#786F17 #175078 #3E1778
monochromatic
#1A1805 #453F0D #786F17 #AB9F21 #D8C832

Accessibility & contrast

On white

5.14
#786F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#786F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F17
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F17#FFFFFF#000000##FFFFFF
##786F171.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B02
Deuteranopia (green-blind)
#7D6F1E
Tritanopia (blue-blind)
#82675F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786f17;
/* rgb */ color: rgb(120, 111, 23);
/* oklch */ color: oklch(53.4% 0.104 103.2);
Tailwind
colors: {
  custom: {
    50: '#a2985d',
    500: '#786f17',
    950: '#000000',
  },
}
SCSS
$custom: #786f17;
$custom-light: #a2985d;
$custom-dark: #000000;
JSON
{
  "hex": "#786f17",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 54.433,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.534,
    "c": 0.10375,
    "h": 103.2
  },
  "luminance": 0.15424
}

Semantic roles & 50–950 ramp

primary
#786F17
secondary
#3E48AD
accent
#4DEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786F17

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

Preview Lab → · Contrast checker → · Palette generator →

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