Skip to content

#171021

a deep, soft violet · warm · closest name: black

RGB
23, 16, 33
HSL
265°, 35%, 10%
CMYK
30, 52, 0, 87
Luminance
0.0066

Every format

HEX#171021
RGBrgb(23, 16, 33)
HSLhsl(265, 35%, 10%)
CMYKcmyk(30%, 52%, 0%, 87%)
LABlab(6.0 7.5 -10.3)
LCHlch(6.0 12.7 306.1)
OKLCHoklch(0.191 0.035 302.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#171021 on white: 18.54:1
AA ✓ pass · AA-large · AAA
Aa
#171021 on black: 1.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red9.0%
Green6.3%
Blue12.9%

CMYK percentages

Cyan30.3%
Magenta51.5%
Yellow0.0%
Key (black)87.1%

Color previews

#171021 text on a black background

contrast 1.13:1

Card sample

#171021 text on a white background

contrast 18.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(23, 16, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 16, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #171021;
background: linear-gradient(135deg, #171021, #211020);

Monochromatic scale

Palettes built from #171021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #171021 in the Color Lab