Skip to content

#902dfd

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

RGB
144, 45, 253
HSL
269°, 98%, 58%
CMYK
43, 82, 0, 1
Luminance
0.1490

Every format

HEX#902dfd
RGBrgb(144, 45, 253)
HSLhsl(269, 98%, 58%)
CMYKcmyk(43%, 82%, 0%, 1%)
LABlab(45.5 76.0 -84.5)
LCHlch(45.5 113.7 312.0)
OKLCHoklch(0.565 0.274 298.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#902dfd on white: 5.28:1
AA ✓ pass · AA-large · AAA
Aa
#902dfd on black: 3.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.5%
Green17.6%
Blue99.2%

CMYK percentages

Cyan43.1%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#902dfd text on a black background

contrast 3.98:1

Card sample

#902dfd text on a white background

contrast 5.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(144, 45, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(144, 45, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #902dfd;
background: linear-gradient(135deg, #902dfd, #FD2DDF);

Monochromatic scale

Palettes built from #902dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #902dfd in the Color Lab