Skip to content

#cb7af4

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

RGB
203, 122, 244
HSL
280°, 85%, 72%
CMYK
17, 50, 0, 4
Luminance
0.3315

Every format

HEX#cb7af4
RGBrgb(203, 122, 244)
HSLhsl(280, 85%, 72%)
CMYKcmyk(17%, 50%, 0%, 4%)
LABlab(64.3 51.9 -48.9)
LCHlch(64.3 71.3 316.7)
OKLCHoklch(0.714 0.187 313.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb7af4 on white: 2.75:1
AA ✗ fail · AA-large · AAA
Aa
#cb7af4 on black: 7.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green47.8%
Blue95.7%

CMYK percentages

Cyan16.8%
Magenta50.0%
Yellow0.0%
Key (black)4.3%

Color previews

#cb7af4 text on a black background

contrast 7.63:1

Card sample

#cb7af4 text on a white background

contrast 2.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb7af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb7af4 in the Color Lab