#945FC7#945FC7
#945FC7 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 58.8% C 0.160 H 305.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #945FC7 |
|---|---|
| RGB | rgb(148, 95, 199) |
| HSL | hsl(271, 48%, 58%) |
| HSV | hsv(271, 52%, 78%) |
| CMYK | cmyk(25.6%, 52.3%, 0%, 22%) |
| CIE-LAB | lab(50.22, 41.67, -46.27) |
| CIE-LCH | lch(50.22, 62.26, 312.00°) |
| OKLab | oklab(58.83% 0.093 -0.13) |
| OKLCH | oklch(58.83% 0.16 305.6) |
| XYZ | xyz(26.6116, 18.6040, 56.2108) |
| Luminance | 0.1860 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 2.30
Deep Lavender
#8D5EB7
ΔE00 2.93
Deep Lilac
#966EBD
ΔE00 5.20
Lightish Purple
#A552E6
ΔE00 5.62
Mediumpurple
#9370DB
ΔE00 6.02
Purpley
#8756E4
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#945FC7 #92C75F
analogous
#605FC7 #945FC7 #C75FC6
triadic
#945FC7 #C7945F #5FC794
tetradic
#945FC7 #C7605F #92C75F #5FC6C7
square
#945FC7 #C7605F #92C75F #5FC6C7
split-complementary
#945FC7 #C6C75F #5FC760
monochromatic
#572C7F #753CAC #945FC7 #B28CD7 #D1BAE7
Accessibility & contrast
On white
4.45
#945FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#945FC7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #945FC7
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##945FC7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##945FC7 | 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)
#3E76CB
Deuteranopia (green-blind)
#4E78C4
Tritanopia (blue-blind)
#8C728A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #945fc7; /* rgb */ color: rgb(148, 95, 199); /* oklch */ color: oklch(58.8% 0.160 305.6);
Tailwind
colors: {
custom: {
50: '#b68ed8',
500: '#945fc7',
950: '#000000',
},
}SCSS
$custom: #945fc7; $custom-light: #b68ed8; $custom-dark: #000000;
JSON
{
"hex": "#945fc7",
"rgb": {
"r": 148,
"g": 95,
"b": 199
},
"hsl": {
"h": 270.577,
"s": 48.148,
"l": 57.647
},
"oklch": {
"l": 0.58825,
"c": 0.15983,
"h": 305.6
},
"luminance": 0.18604
}Semantic roles & 50–950 ramp
primary
#945FC7
secondary
#C0D6AC
accent
#D85093
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83