#945AEC#945AEC
#945AEC is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.5% C 0.211 H 298.1°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #945AEC |
|---|---|
| RGB | rgb(148, 90, 236) |
| HSL | hsl(264, 79%, 64%) |
| HSV | hsv(264, 62%, 93%) |
| CMYK | cmyk(37.3%, 61.9%, 0%, 7.5%) |
| CIE-LAB | lab(51.46, 53.44, -65.29) |
| CIE-LCH | lch(51.46, 84.37, 309.30°) |
| OKLab | oklab(60.45% 0.0992 -0.1858) |
| OKLCH | oklch(60.45% 0.211 298.1) |
| XYZ | xyz(31.0054, 19.6639, 81.5026) |
| Luminance | 0.1966 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.90
Lighter Purple
#A55AF4
ΔE00 3.13
Lightish Purple
#A552E6
ΔE00 3.57
Mediumslateblue
#7B68EE
ΔE00 5.83
Mediumpurple
#9370DB
ΔE00 6.26
Amethyst
#9B5FC0
ΔE00 7.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#945AEC #B2EC5A
analogous
#5A69EC #945AEC #DD5AEC
triadic
#945AEC #EC945A #5AEC94
tetradic
#945AEC #EC5A69 #B2EC5A #5AECDD
square
#945AEC #EC5A69 #B2EC5A #5AECDD
split-complementary
#945AEC #ECDD5A #69EC5A
monochromatic
#5515B7 #7023E6 #945AEC #B891F2 #DBC8F9
Accessibility & contrast
On white
4.26
#945AEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#945AEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #945AEC
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##945AEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##945AEC | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#1179E9
Tritanopia (blue-blind)
#7F7A9B
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #945aec; /* rgb */ color: rgb(148, 90, 236); /* oklch */ color: oklch(60.5% 0.211 298.1);
Tailwind
colors: {
custom: {
50: '#b98bf3',
500: '#945aec',
950: '#000000',
},
}SCSS
$custom: #945aec; $custom-light: #b98bf3; $custom-dark: #000000;
JSON
{
"hex": "#945aec",
"rgb": {
"r": 148,
"g": 90,
"b": 236
},
"hsl": {
"h": 263.836,
"s": 79.348,
"l": 63.922
},
"oklch": {
"l": 0.60451,
"c": 0.21062,
"h": 298.1
},
"luminance": 0.19664
}Semantic roles & 50–950 ramp
primary
#945AEC
secondary
#D6EBB7
accent
#DC0A88
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85