#945EF2#945EF2
#945EF2 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.4% C 0.212 H 296.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #945EF2 |
|---|---|
| RGB | rgb(148, 94, 242) |
| HSL | hsl(262, 85%, 66%) |
| HSV | hsv(262, 61%, 95%) |
| CMYK | cmyk(38.8%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(52.63, 52.87, -66.75) |
| CIE-LCH | lch(52.63, 85.15, 308.38°) |
| OKLab | oklab(61.43% 0.0944 -0.1901) |
| OKLCH | oklch(61.43% 0.212 296.4) |
| XYZ | xyz(32.2383, 20.7115, 86.2864) |
| Luminance | 0.2071 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.99
Purpley
#8756E4
ΔE00 3.90
Lightish Purple
#A552E6
ΔE00 4.46
Mediumslateblue
#7B68EE
ΔE00 5.13
Mediumpurple
#9370DB
ΔE00 5.72
Light Urple
#B36FF6
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#945EF2 #BCF25E
analogous
#5E72F2 #945EF2 #DE5EF2
triadic
#945EF2 #F2945E #5EF294
tetradic
#945EF2 #F25E72 #BCF25E #5EF2DE
square
#945EF2 #F25E72 #BCF25E #5EF2DE
split-complementary
#945EF2 #F2DE5E #72F25E
monochromatic
#5210C6 #6E25ED #945EF2 #BA97F7 #DFCFFB
Accessibility & contrast
On white
4.08
#945EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#945EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #945EF2
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##945EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##945EF2 | 1.00 | 4.08 | 5.14 | 5.14 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#097CEF
Tritanopia (blue-blind)
#7D7F9F
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #945ef2; /* rgb */ color: rgb(148, 94, 242); /* oklch */ color: oklch(61.4% 0.212 296.4);
Tailwind
colors: {
custom: {
50: '#b98ef7',
500: '#945ef2',
950: '#000000',
},
}SCSS
$custom: #945ef2; $custom-light: #b98ef7; $custom-dark: #000000;
JSON
{
"hex": "#945ef2",
"rgb": {
"r": 148,
"g": 94,
"b": 242
},
"hsl": {
"h": 261.892,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.61432,
"c": 0.21223,
"h": 296.4
},
"luminance": 0.20712
}Semantic roles & 50–950 ramp
primary
#945EF2
secondary
#DDEEBD
accent
#E20491
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85