#945FD2#945FD2
#945FD2 is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.5% C 0.173 H 302.8°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #945FD2 |
|---|---|
| RGB | rgb(148, 95, 210) |
| HSL | hsl(268, 56%, 60%) |
| HSV | hsv(268, 55%, 82%) |
| CMYK | cmyk(29.5%, 54.8%, 0%, 17.6%) |
| CIE-LAB | lab(50.84, 44.32, -51.57) |
| CIE-LCH | lch(50.84, 68.00, 310.68°) |
| OKLab | oklab(59.49% 0.0936 -0.1455) |
| OKLCH | oklch(59.49% 0.173 302.8) |
| XYZ | xyz(27.9352, 19.1335, 63.1817) |
| Luminance | 0.1913 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.92
Lightish Purple
#A552E6
ΔE00 4.46
Purpley
#8756E4
ΔE00 4.67
Deep Lavender
#8D5EB7
ΔE00 4.68
Mediumpurple
#9370DB
ΔE00 5.11
Lighter Purple
#A55AF4
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#945FD2 #9DD25F
analogous
#5F64D2 #945FD2 #CE5FD2
triadic
#945FD2 #D2945F #5FD294
tetradic
#945FD2 #D25F64 #9DD25F #5FD2CE
square
#945FD2 #D25F64 #9DD25F #5FD2CE
split-complementary
#945FD2 #D2CE5F #64D25F
monochromatic
#57288F #7536BE #945FD2 #B48FDF #D4BFED
Accessibility & contrast
On white
4.35
#945FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.83
#945FD2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #945FD2
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##945FD2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##945FD2 | 1.00 | 4.35 | 4.83 | 4.83 |
| #FFFFFF | 4.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3378D6
Deuteranopia (green-blind)
#4579CF
Tritanopia (blue-blind)
#88758F
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #945fd2; /* rgb */ color: rgb(148, 95, 210); /* oklch */ color: oklch(59.5% 0.173 302.8);
Tailwind
colors: {
custom: {
50: '#b78ee0',
500: '#945fd2',
950: '#000000',
},
}SCSS
$custom: #945fd2; $custom-light: #b78ee0; $custom-dark: #000000;
JSON
{
"hex": "#945fd2",
"rgb": {
"r": 148,
"g": 95,
"b": 210
},
"hsl": {
"h": 267.652,
"s": 56.098,
"l": 59.804
},
"oklch": {
"l": 0.59486,
"c": 0.17303,
"h": 302.8
},
"luminance": 0.19133
}Semantic roles & 50–950 ramp
primary
#945FD2
secondary
#C8DDB0
accent
#DF489A
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83