#945CD2#945CD2
#945CD2 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.0% C 0.178 H 303.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #945CD2 |
|---|---|
| RGB | rgb(148, 92, 210) |
| HSL | hsl(268, 57%, 59%) |
| HSV | hsv(268, 56%, 82%) |
| CMYK | cmyk(29.5%, 56.2%, 0%, 17.6%) |
| CIE-LAB | lab(50.22, 45.95, -52.57) |
| CIE-LCH | lch(50.22, 69.82, 311.16°) |
| OKLab | oklab(59.03% 0.0974 -0.1484) |
| OKLCH | oklch(59.03% 0.178 303.3) |
| XYZ | xyz(27.6701, 18.6034, 63.0933) |
| Luminance | 0.1860 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 4.02
Lightish Purple
#A552E6
ΔE00 4.11
Purpley
#8756E4
ΔE00 4.30
Deep Lavender
#8D5EB7
ΔE00 4.68
Lighter Purple
#A55AF4
ΔE00 5.40
Mediumpurple
#9370DB
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#945CD2 #9AD25C
analogous
#5C5FD2 #945CD2 #CF5CD2
triadic
#945CD2 #D2945C #5CD294
tetradic
#945CD2 #D25C5F #9AD25C #5CD2CF
square
#945CD2 #D25C5F #9AD25C #5CD2CF
split-complementary
#945CD2 #D2CF5C #5FD25C
monochromatic
#57278D #7534BD #945CD2 #B38CDF #D3BCEC
Accessibility & contrast
On white
4.45
#945CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#945CD2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #945CD2
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##945CD2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##945CD2 | 1.00 | 4.45 | 4.72 | 4.72 |
| #FFFFFF | 4.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D76D6
Deuteranopia (green-blind)
#4277CF
Tritanopia (blue-blind)
#89738E
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #945cd2; /* rgb */ color: rgb(148, 92, 210); /* oklch */ color: oklch(59.0% 0.178 303.3);
Tailwind
colors: {
custom: {
50: '#b78ce0',
500: '#945cd2',
950: '#000000',
},
}SCSS
$custom: #945cd2; $custom-light: #b78ce0; $custom-dark: #000000;
JSON
{
"hex": "#945cd2",
"rgb": {
"r": 148,
"g": 92,
"b": 210
},
"hsl": {
"h": 268.475,
"s": 56.731,
"l": 59.216
},
"oklch": {
"l": 0.59027,
"c": 0.17755,
"h": 303.3
},
"luminance": 0.18603
}Semantic roles & 50–950 ramp
primary
#945CD2
secondary
#C6DCAE
accent
#E04898
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83