Skip to content

#cf0af9

a balanced, electric violet · warm · closest name: magenta

RGB
207, 10, 249
HSL
290°, 95%, 51%
CMYK
17, 96, 0, 2
Luminance
0.2032

Every format

HEX#cf0af9
RGBrgb(207, 10, 249)
HSLhsl(290, 95%, 51%)
CMYKcmyk(17%, 96%, 0%, 2%)
LABlab(52.2 89.7 -71.0)
LCHlch(52.2 114.4 321.6)
OKLCHoklch(0.629 0.301 318.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf0af9 on white: 4.15:1
AA ✗ fail · AA-large · AAA
Aa
#cf0af9 on black: 5.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green3.9%
Blue97.6%

CMYK percentages

Cyan16.9%
Magenta96.0%
Yellow0.0%
Key (black)2.4%

Color previews

#cf0af9 text on a black background

contrast 5.06:1

Card sample

#cf0af9 text on a white background

contrast 4.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 10, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 10, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cf0af9;
background: linear-gradient(135deg, #cf0af9, #F90A84);

Monochromatic scale

Palettes built from #cf0af9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf0af9 in the Color Lab