Skip to content

#514c01

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

RGB
81, 76, 1
HSL
56°, 98%, 16%
CMYK
0, 6, 99, 68
Luminance
0.0692

Every format

HEX#514c01
RGBrgb(81, 76, 1)
HSLhsl(56, 98%, 16%)
CMYKcmyk(0%, 6%, 99%, 68%)
LABlab(31.6 -6.4 39.5)
LCHlch(31.6 40.1 99.2)
OKLCHoklch(0.408 0.086 105.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#514c01 on white: 8.81:1
AA ✓ pass · AA-large · AAA
Aa
#514c01 on black: 2.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.8%
Green29.8%
Blue0.4%

CMYK percentages

Cyan0.0%
Magenta6.2%
Yellow98.8%
Key (black)68.2%

Color previews

#514c01 text on a black background

contrast 2.38:1

Card sample

#514c01 text on a white background

contrast 8.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(81, 76, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 76, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #514c01;
background: linear-gradient(135deg, #514c01, #215101);

Monochromatic scale

Palettes built from #514c01

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #514c01 in the Color Lab