#6B21A8

Purple

#6B21A8Purple

Luminance

0.070

Category

Purple

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#6B21A8
No #
6B21A8

RGB

RGB
rgb(107, 33, 168)
Values
R:107 G:33 B:168

HSL

HSL
hsl(273, 67%, 39%)
Values
H:273° S:67% L:39%

HSV / HSB

HSV
hsv(273, 80%, 66%)
Values
H:273° S:80% V:66%

CMYK

CMYK
cmyk(36%, 80%, 0%, 34%)
Values
C:36 M:80 Y:0 K:34

LAB

LAB
lab(32, 56, -58)
Values
L:32 a:56 b:-58

OKLCH

OKLCH
oklch(43.8% 0.198 303.7)
Values
L:43.8% C:0.198 H:303.7°

Code Formats

CSS
color: #6B21A8;
Swift
UIColor(red: 0.420, green: 0.129, blue: 0.659, alpha: 1.0)
Kotlin
Color(0xFF6B21A8)
Flutter
Color(0xFF6B21A8)
Android
#FF6B21A8

Contrast Analysis

WCAG compliance with grayscale colors

On White

8.72:1

AAA

On Black

2.41:1

Fail

Grayscale Contrast

Aa

0%

2.4

Fail
Aa

10%

2.0

Fail
Aa

20%

1.4

Fail
Aa

30%

1.0

Fail
Aa

40%

1.5

Fail
Aa

50%

2.2

Fail
Aa

60%

3.1

AA-large
Aa

70%

4.2

AA-large
Aa

80%

5.4

AA
Aa

90%

6.9

AA
Aa

100%

8.7

AAA

Best Grayscale Contrast

#FFFFFF with ratio 8.72: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, #9D50DC 0%, #44156A 100%)
OKLCH
linear-gradient(90deg, oklch(59.0% 0.208 306.3) 0%, oklch(32.1% 0.138 304.7) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #8716E3 0%, #6F08C4 100%)
OKLCH
linear-gradient(135deg, oklch(51.8% 0.264 301.2) 0%, oklch(45.5% 0.239 299.5) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #6B21A8 0%, #5DA621 100%)
OKLCH
linear-gradient(90deg, oklch(43.8% 0.198 303.7) 0%, oklch(65.3% 0.176 134.8) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #2721A6 0%, #6B21A8 50%, #A6219F 100%)
OKLCH
linear-gradient(90deg, oklch(37.0% 0.200 272.7) 0%, oklch(43.8% 0.198 303.7) 50%, oklch(51.7% 0.212 330.6) 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, #6A21A6 0%, #20132A 100%)
OKLCH
linear-gradient(180deg, oklch(43.5% 0.196 303.8) 0%, oklch(21.6% 0.047 309.0) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #923BD8 0%, #521980 100%)
OKLCH
radial-gradient(circle, oklch(55.0% 0.227 305.2) 0%, oklch(36.4% 0.161 304.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