#9C27B0

Purple

#9C27B0Purple

Luminance

0.117

Category

Pink

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#9C27B0
No #
9C27B0

RGB

RGB
rgb(156, 39, 176)
Values
R:156 G:39 B:176

HSL

HSL
hsl(291, 64%, 42%)
Values
H:291° S:64% L:42%

HSV / HSB

HSV
hsv(291, 78%, 69%)
Values
H:291° S:78% V:69%

CMYK

CMYK
cmyk(11%, 78%, 0%, 31%)
Values
C:11 M:78 Y:0 K:31

LAB

LAB
lab(41, 64, -48)
Values
L:41 a:64 b:-48

OKLCH

OKLCH
oklch(51.7% 0.215 321.2)
Values
L:51.7% C:0.215 H:321.2°

Code Formats

CSS
color: #9C27B0;
Swift
UIColor(red: 0.612, green: 0.153, blue: 0.690, alpha: 1.0)
Kotlin
Color(0xFF9C27B0)
Flutter
Color(0xFF9C27B0)
Android
#FF9C27B0

Contrast Analysis

WCAG compliance with grayscale colors

On White

6.30:1

AA

On Black

3.33:1

AA-large

Grayscale Contrast

Aa

0%

3.3

AA-large
Aa

10%

2.8

Fail
Aa

20%

2.0

Fail
Aa

30%

1.3

Fail
Aa

40%

1.1

Fail
Aa

50%

1.6

Fail
Aa

60%

2.2

Fail
Aa

70%

3.0

AA-large
Aa

80%

3.9

AA-large
Aa

90%

5.0

AA
Aa

100%

6.3

AA

Best Grayscale Contrast

#FFFFFF with ratio 6.30:1

Aa

Color Harmonies

Harmonious color combinations

complementary

Two colors opposite on the color wheel (180°)

split-complementary

Base color + two colors adjacent to its complement

triadic

Three colors evenly spaced (120° apart)

tetradic

Four colors evenly spaced (90° apart)

analogous

Three colors adjacent on the color wheel (30° apart)

Color Variations

Tints, shades, tones, and full scale

Color Scale (50-900)

50

100

200

300

400

500

600

700

800

900

Tints (Lighter)

Shades (Darker)

Tones (Desaturated)

Gradients (OKLCH)

Primary

90°
CSS
linear-gradient(90deg, #CA60DC 0%, #5C1769 100%)
OKLCH
linear-gradient(90deg, oklch(66.4% 0.202 321.6) 0%, oklch(35.8% 0.144 320.7) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #C824E5 0%, #A60BC1 100%)
OKLCH
linear-gradient(135deg, oklch(61.4% 0.274 320.7) 0%, oklch(53.0% 0.249 320.3) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #9C27B0 0%, #3BB027 100%)
OKLCH
linear-gradient(90deg, oklch(51.7% 0.215 321.2) 0%, oklch(66.6% 0.200 141.1) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #5727B0 0%, #9C27B0 50%, #B02780 100%)
OKLCH
linear-gradient(90deg, oklch(42.8% 0.199 291.6) 0%, oklch(51.7% 0.215 321.2) 50%, oklch(52.2% 0.192 346.1) 100%)
Stops
0%
50%
100%

Sunset

90°
CSS
linear-gradient(90deg, #F6CE55 0%, #EE6C2B 50%, #E6193C 100%)
OKLCH
linear-gradient(90deg, oklch(86.4% 0.144 90.6) 0%, oklch(68.0% 0.177 43.8) 50%, oklch(59.1% 0.228 21.2) 100%)
Stops
0%
50%
100%

Ocean

135°
CSS
linear-gradient(135deg, #19A1E6 0%, #22C3B6 50%, #47D1A3 100%)
OKLCH
linear-gradient(135deg, oklch(67.5% 0.146 238.9) 0%, oklch(73.8% 0.124 186.2) 50%, oklch(77.5% 0.136 166.9) 100%)
Stops
0%
50%
100%

Dark Mode

180°
CSS
linear-gradient(180deg, #9B27B0 0%, #261429 100%)
OKLCH
linear-gradient(180deg, oklch(51.5% 0.215 320.9) 0%, oklch(22.6% 0.047 321.7) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #C24BD8 0%, #6F1C7D 100%)
OKLCH
radial-gradient(circle, oklch(62.7% 0.224 321.1) 0%, oklch(40.6% 0.164 321.4) 100%)
Stops
0%
100%

💡 About OKLCH Gradients

OKLCH (Oklch Color Space) provides perceptually uniform gradients with better color transitions than traditional RGB/HSL gradients. The format is oklch(L% C H) where L = Lightness (0-100%), C = Chroma (0-0.4), H = Hue (0-360°).

Generate Full Palette

Create a complete brand palette from this color with primary, secondary, accent, and neutral scales.

View Palette