Skip to content

#cb4fec

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

RGB
203, 79, 236
HSL
287°, 81%, 62%
CMYK
14, 67, 0, 8
Luminance
0.2434

Every format

HEX#cb4fec
RGBrgb(203, 79, 236)
HSLhsl(287, 81%, 62%)
CMYKcmyk(14%, 67%, 0%, 8%)
LABlab(56.4 70.3 -56.9)
LCHlch(56.4 90.5 321.0)
OKLCHoklch(0.655 0.240 318.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb4fec on white: 3.58:1
AA ✗ fail · AA-large · AAA
Aa
#cb4fec on black: 5.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green31.0%
Blue92.5%

CMYK percentages

Cyan14.0%
Magenta66.5%
Yellow0.0%
Key (black)7.5%

Color previews

#cb4fec text on a black background

contrast 5.87:1

Card sample

#cb4fec text on a white background

contrast 3.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb4fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb4fec in the Color Lab