Skip to content

#ffa0ff

a light, electric magenta / pink · warm · closest name: violet

RGB
255, 160, 255
HSL
300°, 100%, 81%
CMYK
0, 37, 0, 0
Luminance
0.5362

Every format

HEX#ffa0ff
RGBrgb(255, 160, 255)
HSLhsl(300, 100%, 81%)
CMYKcmyk(0%, 37%, 0%, 0%)
LABlab(78.2 49.3 -32.7)
LCHlch(78.2 59.1 326.5)
OKLCHoklch(0.832 0.163 326.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffa0ff on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#ffa0ff on black: 11.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green62.7%
Blue100.0%

CMYK percentages

Cyan0.0%
Magenta37.3%
Yellow0.0%
Key (black)0.0%

Color previews

#ffa0ff text on a black background

contrast 11.72:1

Card sample

#ffa0ff text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 160, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 160, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffa0ff;
background: linear-gradient(135deg, #ffa0ff, #FFA0C0);

Monochromatic scale

Palettes built from #ffa0ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffa0ff in the Color Lab