#945FE8#945FE8
#945FE8 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.9% C 0.199 H 298.1°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #945FE8 |
|---|---|
| RGB | rgb(148, 95, 232) |
| HSL | hsl(263, 75%, 64%) |
| HSV | hsv(263, 59%, 91%) |
| CMYK | cmyk(36.2%, 59.1%, 0%, 9%) |
| CIE-LAB | lab(52.18, 49.79, -61.87) |
| CIE-LCH | lch(52.18, 79.42, 308.83°) |
| OKLab | oklab(60.9% 0.0937 -0.1757) |
| OKLCH | oklch(60.9% 0.199 298.1) |
| XYZ | xyz(30.8668, 20.3061, 78.6215) |
| Luminance | 0.2031 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 3.24
Purpley
#8756E4
ΔE00 3.58
Lightish Purple
#A552E6
ΔE00 4.02
Mediumpurple
#9370DB
ΔE00 4.99
Mediumslateblue
#7B68EE
ΔE00 5.38
Amethyst
#9B5FC0
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#945FE8 #B3E85F
analogous
#5F6FE8 #945FE8 #D95FE8
triadic
#945FE8 #E8945F #5FE894
tetradic
#945FE8 #E85F6F #B3E85F #5FE8D9
square
#945FE8 #E85F6F #B3E85F #5FE8D9
split-complementary
#945FE8 #E8D95F #6FE85F
monochromatic
#551AB3 #7029E0 #945FE8 #B895F0 #DCCAF7
Accessibility & contrast
On white
4.15
#945FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#945FE8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #945FE8
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##945FE8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##945FE8 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#017DEC
Deuteranopia (green-blind)
#2A7BE5
Tritanopia (blue-blind)
#817C9B
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #945fe8; /* rgb */ color: rgb(148, 95, 232); /* oklch */ color: oklch(60.9% 0.199 298.1);
Tailwind
colors: {
custom: {
50: '#b88ef0',
500: '#945fe8',
950: '#000000',
},
}SCSS
$custom: #945fe8; $custom-light: #b88ef0; $custom-dark: #000000;
JSON
{
"hex": "#945fe8",
"rgb": {
"r": 148,
"g": 95,
"b": 232
},
"hsl": {
"h": 263.212,
"s": 74.863,
"l": 64.118
},
"oklch": {
"l": 0.60897,
"c": 0.19918,
"h": 298.1
},
"luminance": 0.20307
}Semantic roles & 50–950 ramp
primary
#945FE8
secondary
#D7E9BA
accent
#D70E89
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85