#786D18#786D18

#786D18 is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 52.9% C 0.101 H 101.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#786D18
RGBrgb(120, 109, 24)
HSLhsl(53, 67%, 28%)
HSVhsv(53, 80%, 47%)
CMYKcmyk(0%, 9.2%, 80%, 52.9%)
CIE-LABlab(45.63, -5.55, 45.49)
CIE-LCHlch(45.63, 45.83, 96.95°)
OKLaboklab(52.94% -0.0203 0.0993)
OKLCHoklch(52.94% 0.101 101.6)
XYZxyz(13.3799, 14.9969, 3.0539)
Luminance0.1500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786D18 #182378
analogous
#783D18 #786D18 #537818
triadic
#786D18 #18786D #6D1878
tetradic
#786D18 #18783D #182378 #781853
square
#786D18 #18783D #182378 #781853
split-complementary
#786D18 #185378 #3D1878
monochromatic
#1A1705 #453F0E #786D18 #AB9B22 #D6C434

Accessibility & contrast

On white

5.25
#786D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#786D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786D18
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786D18#FFFFFF#000000##FFFFFF
##786D181.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786905
Deuteranopia (green-blind)
#7B6E1E
Tritanopia (blue-blind)
#82655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786d18;
/* rgb */ color: rgb(120, 109, 24);
/* oklch */ color: oklch(52.9% 0.101 101.6);
Tailwind
colors: {
  custom: {
    50: '#a2965d',
    500: '#786d18',
    950: '#000000',
  },
}
SCSS
$custom: #786d18;
$custom-light: #a2965d;
$custom-dark: #000000;
JSON
{
  "hex": "#786d18",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 24
  },
  "hsl": {
    "h": 53.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52941,
    "c": 0.10139,
    "h": 101.6
  },
  "luminance": 0.14996
}

Semantic roles & 50–950 ramp

primary
#786D18
secondary
#3F4BAD
accent
#52EA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786D18

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

Preview Lab → · Contrast checker → · Palette generator →

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