Skip to content

#40afb0

a balanced, vivid cyan · cool · closest name: teal

RGB
64, 175, 176
HSL
181°, 47%, 47%
CMYK
64, 1, 0, 31
Luminance
0.3488

Every format

HEX#40afb0
RGBrgb(64, 175, 176)
HSLhsl(181, 47%, 47%)
CMYKcmyk(64%, 1%, 0%, 31%)
LABlab(65.7 -30.4 -9.8)
LCHlch(65.7 32.0 197.8)
OKLCHoklch(0.693 0.099 196.0)

Copy-ready code

/* CSS */
color: #40afb0;
background-color: #40afb0;
/* Tailwind (arbitrary) */
class="text-[#40afb0] bg-[#40afb0]"
/* SCSS */
$brand: #40afb0;
/* SwiftUI */
Color(red: 0.251, green: 0.686, blue: 0.690)
/* Android */
Color.parseColor("#40afb0")

Accessibility — WCAG contrast

Aa
#40afb0 on white: 2.63:1
AA ✗ fail · AA-large · AAA
Aa
#40afb0 on black: 7.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green68.6%
Blue69.0%

CMYK percentages

Cyan63.6%
Magenta0.6%
Yellow0.0%
Key (black)31.0%

Color previews

#40afb0 text on a black background

contrast 7.98:1

Card sample

#40afb0 text on a white background

contrast 2.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40afb0;
Background color
Panel with #40afb0 background
background-color: #40afb0;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #40afb0;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 175, 176, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 175, 176, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40afb0;
background: linear-gradient(135deg, #40afb0, #4064B0);

Monochromatic scale

Palettes built from #40afb0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40afb0 in the Color Lab