#8B5CF6

Royal Blue

#8B5CF6Royal Blue

Luminance

0.198

Category

Purple

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#8B5CF6
No #
8B5CF6

RGB

RGB
rgb(139, 92, 246)
Values
R:139 G:92 B:246

HSL

HSL
hsl(258, 90%, 66%)
Values
H:258° S:90% L:66%

HSV / HSB

HSV
hsv(258, 63%, 96%)
Values
H:258° S:63% V:96%

CMYK

CMYK
cmyk(43%, 63%, 0%, 4%)
Values
C:43 M:63 Y:0 K:4

LAB

LAB
lab(52, 53, -71)
Values
L:52 a:53 b:-71

OKLCH

OKLCH
oklch(60.6% 0.219 292.7)
Values
L:60.6% C:0.219 H:292.7°

Code Formats

CSS
color: #8B5CF6;
Swift
UIColor(red: 0.545, green: 0.361, blue: 0.965, alpha: 1.0)
Kotlin
Color(0xFF8B5CF6)
Flutter
Color(0xFF8B5CF6)
Android
#FF8B5CF6

Contrast Analysis

WCAG compliance with grayscale colors

On White

4.23:1

AA-large

On Black

4.96:1

AA

Grayscale Contrast

Aa

0%

5.0

AA
Aa

10%

4.1

AA-large
Aa

20%

3.0

Fail
Aa

30%

2.0

Fail
Aa

40%

1.4

Fail
Aa

50%

1.1

Fail
Aa

60%

1.5

Fail
Aa

70%

2.0

Fail
Aa

80%

2.6

Fail
Aa

90%

3.4

AA-large
Aa

100%

4.2

AA-large

Best Grayscale Contrast

#000000 with ratio 4.96: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, #CBB6FB 0%, #4B0CDF 100%)
OKLCH
linear-gradient(90deg, oklch(81.8% 0.098 298.2) 0%, oklch(44.7% 0.264 280.3) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #9466FF 0%, #621FFF 100%)
OKLCH
linear-gradient(135deg, oklch(63.5% 0.217 293.1) 0%, oklch(51.2% 0.285 283.3) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #8B5CF6 0%, #C8F65A 100%)
OKLCH
linear-gradient(90deg, oklch(60.6% 0.219 292.7) 0%, oklch(91.2% 0.187 124.1) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #5A79F6 0%, #8B5CF6 50%, #D75AF6 100%)
OKLCH
linear-gradient(90deg, oklch(61.8% 0.190 269.6) 0%, oklch(60.6% 0.219 292.7) 50%, oklch(68.8% 0.240 319.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, #743DF5 0%, #170C31 100%)
OKLCH
linear-gradient(180deg, oklch(54.4% 0.252 288.6) 0%, oklch(19.5% 0.070 292.4) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #A886F9 0%, #5512F3 100%)
OKLCH
radial-gradient(circle, oklch(70.1% 0.165 295.4) 0%, oklch(48.1% 0.280 281.0) 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