Skip to content

#cb97ff

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

RGB
203, 151, 255
HSL
270°, 100%, 80%
CMYK
20, 41, 0, 0
Luminance
0.4205

Every format

HEX#cb97ff
RGBrgb(203, 151, 255)
HSLhsl(270, 100%, 80%)
CMYKcmyk(20%, 41%, 0%, 0%)
LABlab(70.9 38.9 -44.5)
LCHlch(70.9 59.1 311.1)
OKLCHoklch(0.765 0.153 306.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb97ff on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#cb97ff on black: 9.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green59.2%
Blue100.0%

CMYK percentages

Cyan20.4%
Magenta40.8%
Yellow0.0%
Key (black)0.0%

Color previews

#cb97ff text on a black background

contrast 9.41:1

Card sample

#cb97ff text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb97ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb97ff in the Color Lab