#5F4B8B

Slate Gray

#5F4B8BSlate Gray

Luminance

0.093

Category

Purple

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#5F4B8B
No #
5F4B8B

RGB

RGB
rgb(95, 75, 139)
Values
R:95 G:75 B:139

HSL

HSL
hsl(259, 30%, 42%)
Values
H:259° S:30% L:42%

HSV / HSB

HSV
hsv(259, 46%, 55%)
Values
H:259° S:46% V:55%

CMYK

CMYK
cmyk(32%, 46%, 0%, 45%)
Values
C:32 M:46 Y:0 K:45

LAB

LAB
lab(37, 23, -33)
Values
L:37 a:23 b:-33

OKLCH

OKLCH
oklch(46.3% 0.103 296.6)
Values
L:46.3% C:0.103 H:296.6°

Code Formats

CSS
color: #5F4B8B;
Swift
UIColor(red: 0.373, green: 0.294, blue: 0.545, alpha: 1.0)
Kotlin
Color(0xFF5F4B8B)
Flutter
Color(0xFF5F4B8B)
Android
#FF5F4B8B

Contrast Analysis

WCAG compliance with grayscale colors

On White

7.33:1

AAA

On Black

2.87:1

Fail

Grayscale Contrast

Aa

0%

2.9

Fail
Aa

10%

2.4

Fail
Aa

20%

1.7

Fail
Aa

30%

1.2

Fail
Aa

40%

1.3

Fail
Aa

50%

1.8

Fail
Aa

60%

2.6

Fail
Aa

70%

3.5

AA-large
Aa

80%

4.6

AA
Aa

90%

5.8

AA
Aa

100%

7.3

AAA

Best Grayscale Contrast

#FFFFFF with ratio 7.33: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, #9381BB 0%, #392D53 100%)
OKLCH
linear-gradient(90deg, oklch(64.1% 0.087 298.2) 0%, oklch(32.9% 0.067 297.1) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #704EBC 0%, #512E9E 100%)
OKLCH
linear-gradient(135deg, oklch(51.7% 0.166 294.1) 0%, oklch(41.4% 0.170 291.5) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #5F4B8B 0%, #778B4B 100%)
OKLCH
linear-gradient(90deg, oklch(46.3% 0.103 296.6) 0%, oklch(60.5% 0.092 123.4) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #4B578B 0%, #5F4B8B 50%, #7F4B8B 100%)
OKLCH
linear-gradient(90deg, oklch(47.0% 0.086 272.9) 0%, oklch(46.3% 0.103 296.6) 50%, oklch(49.9% 0.114 319.9) 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, #5F4B8B 0%, #1C1825 100%)
OKLCH
linear-gradient(180deg, oklch(46.3% 0.103 296.6) 0%, oklch(22.0% 0.026 298.4) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #8570B2 0%, #443663 100%)
OKLCH
radial-gradient(circle, oklch(59.2% 0.101 297.9) 0%, oklch(37.0% 0.077 296.8) 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