Skip to content

#c68aff

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

RGB
198, 138, 255
HSL
271°, 100%, 77%
CMYK
22, 46, 0, 0
Luminance
0.3740

Every format

HEX#c68aff
RGBrgb(198, 138, 255)
HSLhsl(271, 100%, 77%)
CMYKcmyk(22%, 46%, 0%, 0%)
LABlab(67.6 44.5 -49.8)
LCHlch(67.6 66.8 311.8)
OKLCHoklch(0.739 0.172 306.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c68aff on white: 2.48:1
AA ✗ fail · AA-large · AAA
Aa
#c68aff on black: 8.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red77.6%
Green54.1%
Blue100.0%

CMYK percentages

Cyan22.4%
Magenta45.9%
Yellow0.0%
Key (black)0.0%

Color previews

#c68aff text on a black background

contrast 8.48:1

Card sample

#c68aff text on a white background

contrast 2.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c68aff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c68aff in the Color Lab