#7B1FA2

Purple

#7B1FA2Purple

Luminance

0.078

Category

Purple

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#7B1FA2
No #
7B1FA2

RGB

RGB
rgb(123, 31, 162)
Values
R:123 G:31 B:162

HSL

HSL
hsl(282, 68%, 38%)
Values
H:282° S:68% L:38%

HSV / HSB

HSV
hsv(282, 81%, 64%)
Values
H:282° S:81% V:64%

CMYK

CMYK
cmyk(24%, 81%, 0%, 36%)
Values
C:24 M:81 Y:0 K:36

LAB

LAB
lab(34, 58, -51)
Values
L:34 a:58 b:-51

OKLCH

OKLCH
oklch(45.3% 0.199 313.0)
Values
L:45.3% C:0.199 H:313.0°

Code Formats

CSS
color: #7B1FA2;
Swift
UIColor(red: 0.482, green: 0.122, blue: 0.635, alpha: 1.0)
Kotlin
Color(0xFF7B1FA2)
Flutter
Color(0xFF7B1FA2)
Android
#FF7B1FA2

Contrast Analysis

WCAG compliance with grayscale colors

On White

8.20:1

AAA

On Black

2.56:1

Fail

Grayscale Contrast

Aa

0%

2.6

Fail
Aa

10%

2.1

Fail
Aa

20%

1.5

Fail
Aa

30%

1.0

Fail
Aa

40%

1.4

Fail
Aa

50%

2.0

Fail
Aa

60%

2.9

Fail
Aa

70%

3.9

AA-large
Aa

80%

5.1

AA
Aa

90%

6.5

AA
Aa

100%

8.2

AAA

Best Grayscale Contrast

#FFFFFF with ratio 8.20: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, #B14BDD 0%, #51146B 100%)
OKLCH
linear-gradient(90deg, oklch(60.9% 0.222 313.9) 0%, oklch(34.0% 0.144 313.2) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #A315E0 0%, #8C07C5 100%)
OKLCH
linear-gradient(135deg, oklch(55.2% 0.268 311.2) 0%, oklch(49.4% 0.246 310.4) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #7B1FA2 0%, #47A31F 100%)
OKLCH
linear-gradient(90deg, oklch(45.3% 0.199 313.0) 0%, oklch(63.5% 0.184 138.5) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #391FA3 0%, #7B1FA2 50%, #A31F88 100%)
OKLCH
linear-gradient(90deg, oklch(37.7% 0.194 280.8) 0%, oklch(45.3% 0.199 313.0) 50%, oklch(49.9% 0.196 338.2) 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, #7B1FA3 0%, #23132A 100%)
OKLCH
linear-gradient(180deg, oklch(45.4% 0.200 312.6) 0%, oklch(22.0% 0.049 314.9) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #A836D9 0%, #611881 100%)
OKLCH
radial-gradient(circle, oklch(57.3% 0.239 313.2) 0%, oklch(38.5% 0.167 312.7) 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