#786F18#786F18

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

Color values

HEX#786F18
RGBrgb(120, 111, 24)
HSLhsl(54, 67%, 28%)
HSVhsv(54, 80%, 47%)
CMYKcmyk(0%, 7.5%, 80%, 52.9%)
CIE-LABlab(46.22, -6.68, 46.03)
CIE-LCHlch(46.22, 46.51, 98.26°)
OKLaboklab(53.41% -0.0235 0.1005)
OKLCHoklch(53.41% 0.103 103.2)
XYZxyz(13.5957, 15.4285, 3.1258)
Luminance0.1543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F18 #182178
analogous
#783F18 #786F18 #517818
triadic
#786F18 #18786F #6F1878
tetradic
#786F18 #18783F #182178 #781851
square
#786F18 #18783F #182178 #781851
split-complementary
#786F18 #185178 #3F1878
monochromatic
#1A1805 #45400E #786F18 #AB9E22 #D6C734

Accessibility & contrast

On white

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

On black

4.09
#786F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##786F18#FFFFFF#000000##FFFFFF
##786F181.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786f18;
/* rgb */ color: rgb(120, 111, 24);
/* oklch */ color: oklch(53.4% 0.103 103.2);
Tailwind
colors: {
  custom: {
    50: '#a2985d',
    500: '#786f18',
    950: '#000000',
  },
}
SCSS
$custom: #786f18;
$custom-light: #a2985d;
$custom-dark: #000000;
JSON
{
  "hex": "#786f18",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 24
  },
  "hsl": {
    "h": 54.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53406,
    "c": 0.1032,
    "h": 103.2
  },
  "luminance": 0.15428
}

Semantic roles & 50–950 ramp

primary
#786F18
secondary
#3F49AD
accent
#4EEA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786F18

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

Preview Lab → · Contrast checker → · Palette generator →

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