#787418#787418

#787418 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.6% C 0.108 H 106.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#787418
RGBrgb(120, 116, 24)
HSLhsl(58, 67%, 28%)
HSVhsv(58, 80%, 47%)
CMYKcmyk(0%, 3.3%, 80%, 52.9%)
CIE-LABlab(47.69, -9.48, 47.37)
CIE-LCHlch(47.69, 48.31, 101.32°)
OKLaboklab(54.58% -0.0314 0.1033)
OKLCHoklch(54.58% 0.108 106.9)
XYZxyz(14.1566, 16.5503, 3.3128)
Luminance0.1655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787418 #181C78
analogous
#784418 #787418 #4C7818
triadic
#787418 #187874 #741878
tetradic
#787418 #187844 #181C78 #78184C
square
#787418 #187844 #181C78 #78184C
split-complementary
#787418 #184C78 #441878
monochromatic
#1A1905 #45430E #787418 #ABA522 #D6D034

Accessibility & contrast

On white

4.87
#787418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#787418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787418
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787418#FFFFFF#000000##FFFFFF
##7874181.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F02
Deuteranopia (green-blind)
#807320
Tritanopia (blue-blind)
#816C63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #787418;
/* rgb */ color: rgb(120, 116, 24);
/* oklch */ color: oklch(54.6% 0.108 106.9);
Tailwind
colors: {
  custom: {
    50: '#a29b5e',
    500: '#787418',
    950: '#000000',
  },
}
SCSS
$custom: #787418;
$custom-light: #a29b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#787418",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 57.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54579,
    "c": 0.108,
    "h": 106.9
  },
  "luminance": 0.1655
}

Semantic roles & 50–950 ramp

primary
#787418
secondary
#3F43AD
accent
#45EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787418

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

Preview Lab → · Contrast checker → · Palette generator →

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