#9A5CDC#9A5CDC
#9A5CDC is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.3% C 0.191 H 303.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #9A5CDC |
|---|---|
| RGB | rgb(154, 92, 220) |
| HSL | hsl(269, 65%, 61%) |
| HSV | hsv(269, 58%, 86%) |
| CMYK | cmyk(30%, 58.2%, 0%, 13.7%) |
| CIE-LAB | lab(51.49, 49.80, -56.19) |
| CIE-LCH | lch(51.49, 75.08, 311.55°) |
| OKLab | oklab(60.3% 0.1052 -0.1588) |
| OKLCH | oklch(60.3% 0.191 303.5) |
| XYZ | xyz(30.0689, 19.6917, 69.9130) |
| Luminance | 0.1969 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.77
Lighter Purple
#A55AF4
ΔE00 3.65
Purpley
#8756E4
ΔE00 4.37
Amethyst
#9B5FC0
ΔE00 4.94
Mediumpurple
#9370DB
ΔE00 5.61
Deep Lavender
#8D5EB7
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A5CDC #9EDC5C
analogous
#5C5EDC #9A5CDC #DA5CDC
triadic
#9A5CDC #DC9A5C #5CDC9A
tetradic
#9A5CDC #DC5C5E #9EDC5C #5CDCDA
square
#9A5CDC #DC5C5E #9EDC5C #5CDCDA
split-complementary
#9A5CDC #DCDA5C #5EDC5C
monochromatic
#5D229C #7B2CCE #9A5CDC #B98EE7 #D8C1F2
Accessibility & contrast
On white
4.25
#9A5CDC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#9A5CDC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A5CDC
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A5CDC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A5CDC | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2179E0
Deuteranopia (green-blind)
#3E7BD9
Tritanopia (blue-blind)
#8E7693
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #9a5cdc; /* rgb */ color: rgb(154, 92, 220); /* oklch */ color: oklch(60.3% 0.191 303.5);
Tailwind
colors: {
custom: {
50: '#bc8de7',
500: '#9a5cdc',
950: '#000000',
},
}SCSS
$custom: #9a5cdc; $custom-light: #bc8de7; $custom-dark: #000000;
JSON
{
"hex": "#9a5cdc",
"rgb": {
"r": 154,
"g": 92,
"b": 220
},
"hsl": {
"h": 269.063,
"s": 64.646,
"l": 61.176
},
"oklch": {
"l": 0.60298,
"c": 0.19053,
"h": 303.5
},
"luminance": 0.19692
}Semantic roles & 50–950 ramp
primary
#9A5CDC
secondary
#CBE2B2
accent
#CC1976
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84