Skip to content

#7f55cc

a balanced, vivid violet · warm · closest name: slateblue

RGB
127, 85, 204
HSL
261°, 54%, 57%
CMYK
38, 58, 0, 20
Luminance
0.1537

Every format

HEX#7f55cc
RGBrgb(127, 85, 204)
HSLhsl(261, 54%, 57%)
CMYKcmyk(38%, 58%, 0%, 20%)
LABlab(46.1 43.3 -55.8)
LCHlch(46.1 70.6 307.8)
OKLCHoklch(0.554 0.177 296.4)

Copy-ready code

/* CSS */
color: #7f55cc;
background-color: #7f55cc;
/* Tailwind (arbitrary) */
class="text-[#7f55cc] bg-[#7f55cc]"
/* SCSS */
$brand: #7f55cc;
/* SwiftUI */
Color(red: 0.498, green: 0.333, blue: 0.800)
/* Android */
Color.parseColor("#7f55cc")

Accessibility — WCAG contrast

Aa
#7f55cc on white: 5.15:1
AA ✓ pass · AA-large · AAA
Aa
#7f55cc on black: 4.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.8%
Green33.3%
Blue80.0%

CMYK percentages

Cyan37.7%
Magenta58.3%
Yellow0.0%
Key (black)20.0%

Color previews

#7f55cc text on a black background

contrast 4.07:1

Card sample

#7f55cc text on a white background

contrast 5.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 85, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 85, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f55cc;
background: linear-gradient(135deg, #7f55cc, #CC55CA);

Monochromatic scale

Palettes built from #7f55cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7f55cc in the Color Lab