#786418#786418

#786418 is a mid, moderate yellow. Relative luminance 0.132; OKLCH L 50.9% C 0.094 H 93.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#786418
RGBrgb(120, 100, 24)
HSLhsl(48, 67%, 28%)
HSVhsv(48, 80%, 47%)
CMYKcmyk(0%, 16.7%, 80%, 52.9%)
CIE-LABlab(43.02, -0.36, 43.09)
CIE-LCHlch(43.02, 43.09, 90.48°)
OKLaboklab(50.88% -0.0056 0.0942)
OKLCHoklch(50.88% 0.094 93.4)
XYZxyz(12.4685, 13.1741, 2.7501)
Luminance0.1317 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786418 #182C78
analogous
#783418 #786418 #5C7818
triadic
#786418 #187864 #641878
tetradic
#786418 #187834 #182C78 #78185C
square
#786418 #187834 #182C78 #78185C
split-complementary
#786418 #185C78 #341878
monochromatic
#1A1505 #45390E #786418 #AB8E22 #D6B534

Accessibility & contrast

On white

5.78
#786418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#786418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786418
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786418#FFFFFF#000000##FFFFFF
##7864181.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706209
Deuteranopia (green-blind)
#75681D
Tritanopia (blue-blind)
#825B55
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #786418;
/* rgb */ color: rgb(120, 100, 24);
/* oklch */ color: oklch(50.9% 0.094 93.4);
Tailwind
colors: {
  custom: {
    50: '#a38f5c',
    500: '#786418',
    950: '#000000',
  },
}
SCSS
$custom: #786418;
$custom-light: #a38f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#786418",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 24
  },
  "hsl": {
    "h": 47.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50877,
    "c": 0.09436,
    "h": 93.4
  },
  "luminance": 0.13173
}

Semantic roles & 50–950 ramp

primary
#786418
secondary
#3F56AD
accent
#62EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786418

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

Preview Lab → · Contrast checker → · Palette generator →

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