Skip to content

#787c01

a deep, electric yellow · cool · closest name: olive

RGB
120, 124, 1
HSL
62°, 98%, 25%
CMYK
3, 0, 99, 51
Luminance
0.1841

Every format

HEX#787c01
RGBrgb(120, 124, 1)
HSLhsl(62, 98%, 25%)
CMYKcmyk(3%, 0%, 99%, 51%)
LABlab(50.0 -14.5 54.8)
LCHlch(50.0 56.7 104.8)
OKLCHoklch(0.564 0.125 112.0)

Copy-ready code

/* CSS */
color: #787c01;
background-color: #787c01;
/* Tailwind (arbitrary) */
class="text-[#787c01] bg-[#787c01]"
/* SCSS */
$brand: #787c01;
/* SwiftUI */
Color(red: 0.471, green: 0.486, blue: 0.004)
/* Android */
Color.parseColor("#787c01")

Accessibility — WCAG contrast

Aa
#787c01 on white: 4.49:1
AA ✗ fail · AA-large · AAA
Aa
#787c01 on black: 4.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.1%
Green48.6%
Blue0.4%

CMYK percentages

Cyan3.2%
Magenta0.0%
Yellow99.2%
Key (black)51.4%

Color previews

#787c01 text on a black background

contrast 4.68:1

Card sample

#787c01 text on a white background

contrast 4.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #787c01;
Background color
Panel with #787c01 background
background-color: #787c01;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #787c01;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(120, 124, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 124, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #787c01;
background: linear-gradient(135deg, #787c01, #267C01);

Monochromatic scale

Palettes built from #787c01

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #787c01 in the Color Lab