#945EF3#945EF3
#945EF3 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.5% C 0.213 H 296.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #945EF3 |
|---|---|
| RGB | rgb(148, 94, 243) |
| HSL | hsl(262, 86%, 66%) |
| HSV | hsv(262, 61%, 95%) |
| CMYK | cmyk(39.1%, 61.3%, 0%, 4.7%) |
| CIE-LAB | lab(52.70, 53.12, -67.20) |
| CIE-LCH | lch(52.70, 85.66, 308.33°) |
| OKLab | oklab(61.5% 0.0944 -0.1914) |
| OKLCH | oklch(61.5% 0.213 296.2) |
| XYZ | xyz(32.3889, 20.7718, 87.0795) |
| Luminance | 0.2077 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 3.00
Purpley
#8756E4
ΔE00 3.98
Lightish Purple
#A552E6
ΔE00 4.54
Mediumslateblue
#7B68EE
ΔE00 5.11
Mediumpurple
#9370DB
ΔE00 5.78
Light Urple
#B36FF6
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#945EF3 #BDF35E
analogous
#5E72F3 #945EF3 #DE5EF3
triadic
#945EF3 #F3945E #5EF394
tetradic
#945EF3 #F35E72 #BDF35E #5EF3DE
square
#945EF3 #F35E72 #BDF35E #5EF3DE
split-complementary
#945EF3 #F3DE5E #72F35E
monochromatic
#520FC8 #6E25EF #945EF3 #BA97F7 #E0D0FB
Accessibility & contrast
On white
4.07
#945EF3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#945EF3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #945EF3
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##945EF3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##945EF3 | 1.00 | 4.07 | 5.15 | 5.15 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007FF8
Deuteranopia (green-blind)
#037CF0
Tritanopia (blue-blind)
#7C7FA0
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #945ef3; /* rgb */ color: rgb(148, 94, 243); /* oklch */ color: oklch(61.5% 0.213 296.2);
Tailwind
colors: {
custom: {
50: '#b98ef8',
500: '#945ef3',
950: '#000000',
},
}SCSS
$custom: #945ef3; $custom-light: #b98ef8; $custom-dark: #000000;
JSON
{
"hex": "#945ef3",
"rgb": {
"r": 148,
"g": 94,
"b": 243
},
"hsl": {
"h": 261.745,
"s": 86.127,
"l": 66.078
},
"oklch": {
"l": 0.61502,
"c": 0.21339,
"h": 296.2
},
"luminance": 0.20772
}Semantic roles & 50–950 ramp
primary
#945EF3
secondary
#DDEFBE
accent
#E30392
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85