Skip to content

#f0a7ff

a light, electric violet · warm · closest name: plum

RGB
240, 167, 255
HSL
290°, 100%, 83%
CMYK
6, 35, 0, 0
Luminance
0.5338

Every format

HEX#f0a7ff
RGBrgb(240, 167, 255)
HSLhsl(290, 100%, 83%)
CMYKcmyk(6%, 35%, 0%, 0%)
LABlab(78.1 41.1 -33.0)
LCHlch(78.1 52.8 321.3)
OKLCHoklch(0.828 0.142 320.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0a7ff on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#f0a7ff on black: 11.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green65.5%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta34.5%
Yellow0.0%
Key (black)0.0%

Color previews

#f0a7ff text on a black background

contrast 11.68:1

Card sample

#f0a7ff text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0a7ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0a7ff in the Color Lab