Skip to content

#cb7afd

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

RGB
203, 122, 253
HSL
277°, 97%, 74%
CMYK
20, 52, 0, 1
Luminance
0.3371

Every format

HEX#cb7afd
RGBrgb(203, 122, 253)
HSLhsl(277, 97%, 74%)
CMYKcmyk(20%, 52%, 0%, 1%)
LABlab(64.7 53.8 -53.1)
LCHlch(64.7 75.6 315.4)
OKLCHoklch(0.719 0.197 310.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb7afd on white: 2.71:1
AA ✗ fail · AA-large · AAA
Aa
#cb7afd on black: 7.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green47.8%
Blue99.2%

CMYK percentages

Cyan19.8%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#cb7afd text on a black background

contrast 7.74:1

Card sample

#cb7afd text on a white background

contrast 2.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb7afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb7afd in the Color Lab