Skip to content

#cd0fff

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

RGB
205, 15, 255
HSL
288°, 100%, 53%
CMYK
20, 94, 0, 0
Luminance
0.2054

Every format

HEX#cd0fff
RGBrgb(205, 15, 255)
HSLhsl(288, 100%, 53%)
CMYKcmyk(20%, 94%, 0%, 0%)
LABlab(52.5 90.0 -74.0)
LCHlch(52.5 116.5 320.6)
OKLCHoklch(0.631 0.304 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd0fff on white: 4.11:1
AA ✗ fail · AA-large · AAA
Aa
#cd0fff on black: 5.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green5.9%
Blue100.0%

CMYK percentages

Cyan19.6%
Magenta94.1%
Yellow0.0%
Key (black)0.0%

Color previews

#cd0fff text on a black background

contrast 5.11:1

Card sample

#cd0fff text on a white background

contrast 4.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd0fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd0fff in the Color Lab