#787218#787218

#787218 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.1% C 0.106 H 105.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#787218
RGBrgb(120, 114, 24)
HSLhsl(56, 67%, 28%)
HSVhsv(56, 80%, 47%)
CMYKcmyk(0%, 5%, 80%, 52.9%)
CIE-LABlab(47.10, -8.37, 46.83)
CIE-LCHlch(47.10, 47.57, 100.13°)
OKLaboklab(54.11% -0.0282 0.1022)
OKLCHoklch(54.11% 0.106 105.5)
XYZxyz(13.9285, 16.0942, 3.2368)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787218 #181E78
analogous
#784218 #787218 #4E7818
triadic
#787218 #187872 #721878
tetradic
#787218 #187842 #181E78 #78184E
square
#787218 #187842 #181E78 #78184E
split-complementary
#787218 #184E78 #421878
monochromatic
#1A1805 #45420E #787218 #ABA222 #D6CC34

Accessibility & contrast

On white

4.98
#787218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#787218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787218
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787218#FFFFFF#000000##FFFFFF
##7872181.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E03
Deuteranopia (green-blind)
#7F711F
Tritanopia (blue-blind)
#816A61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787218;
/* rgb */ color: rgb(120, 114, 24);
/* oklch */ color: oklch(54.1% 0.106 105.5);
Tailwind
colors: {
  custom: {
    50: '#a29a5d',
    500: '#787218',
    950: '#000000',
  },
}
SCSS
$custom: #787218;
$custom-light: #a29a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787218",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 56.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54108,
    "c": 0.10603,
    "h": 105.5
  },
  "luminance": 0.16094
}

Semantic roles & 50–950 ramp

primary
#787218
secondary
#3F46AD
accent
#49EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787218

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

Preview Lab → · Contrast checker → · Palette generator →

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