#786218#786218

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

Color values

HEX#786218
RGBrgb(120, 98, 24)
HSLhsl(46, 67%, 28%)
HSVhsv(46, 80%, 47%)
CMYKcmyk(0%, 18.3%, 80%, 52.9%)
CIE-LABlab(42.45, 0.81, 42.55)
CIE-LCHlch(42.45, 42.56, 88.91°)
OKLaboklab(50.43% -0.0023 0.093)
OKLCHoklch(50.43% 0.093 91.4)
XYZxyz(12.2790, 12.7951, 2.6869)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786218 #182E78
analogous
#783218 #786218 #5E7818
triadic
#786218 #187862 #621878
tetradic
#786218 #187832 #182E78 #78185E
square
#786218 #187832 #182E78 #78185E
split-complementary
#786218 #185E78 #321878
monochromatic
#1A1505 #45380E #786218 #AB8C22 #D6B134

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786218#FFFFFF#000000##FFFFFF
##7862181.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)
#6E610A
Deuteranopia (green-blind)
#73671C
Tritanopia (blue-blind)
#825954
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #786218;
/* rgb */ color: rgb(120, 98, 24);
/* oklch */ color: oklch(50.4% 0.093 91.4);
Tailwind
colors: {
  custom: {
    50: '#a38e5b',
    500: '#786218',
    950: '#000000',
  },
}
SCSS
$custom: #786218;
$custom-light: #a38e5b;
$custom-dark: #000000;
JSON
{
  "hex": "#786218",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 24
  },
  "hsl": {
    "h": 46.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50425,
    "c": 0.09308,
    "h": 91.4
  },
  "luminance": 0.12794
}

Semantic roles & 50–950 ramp

primary
#786218
secondary
#3F58AD
accent
#65EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786218

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

Preview Lab → · Contrast checker → · Palette generator →

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