#9A5CDA#9A5CDA
#9A5CDA is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.2% C 0.188 H 304.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #9A5CDA |
|---|---|
| RGB | rgb(154, 92, 218) |
| HSL | hsl(270, 63%, 61%) |
| HSV | hsv(270, 58%, 85%) |
| CMYK | cmyk(29.4%, 57.8%, 0%, 14.5%) |
| CIE-LAB | lab(51.37, 49.32, -55.25) |
| CIE-LCH | lch(51.37, 74.06, 311.76°) |
| OKLab | oklab(60.17% 0.1052 -0.1561) |
| OKLCH | oklch(60.17% 0.188 304) |
| XYZ | xyz(29.8056, 19.5864, 68.5264) |
| Luminance | 0.1959 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.88
Lighter Purple
#A55AF4
ΔE00 3.92
Purpley
#8756E4
ΔE00 4.51
Amethyst
#9B5FC0
ΔE00 4.63
Mediumpurple
#9370DB
ΔE00 5.66
Deep Lavender
#8D5EB7
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A5CDA #9CDA5C
analogous
#5C5DDA #9A5CDA #D95CDA
triadic
#9A5CDA #DA9A5C #5CDA9A
tetradic
#9A5CDA #DA5C5D #9CDA5C #5CDAD9
square
#9A5CDA #DA5C5D #9CDA5C #5CDAD9
split-complementary
#9A5CDA #DAD95C #5DDA5C
monochromatic
#5D2399 #7B2ECB #9A5CDA #B98EE5 #D8C0F1
Accessibility & contrast
On white
4.27
#9A5CDA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.92
#9A5CDA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A5CDA
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A5CDA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A5CDA | 1.00 | 4.27 | 4.92 | 4.92 |
| #FFFFFF | 4.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2579DE
Deuteranopia (green-blind)
#407AD7
Tritanopia (blue-blind)
#8E7592
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #9a5cda; /* rgb */ color: rgb(154, 92, 218); /* oklch */ color: oklch(60.2% 0.188 304.0);
Tailwind
colors: {
custom: {
50: '#bb8de6',
500: '#9a5cda',
950: '#000000',
},
}SCSS
$custom: #9a5cda; $custom-light: #bb8de6; $custom-dark: #000000;
JSON
{
"hex": "#9a5cda",
"rgb": {
"r": 154,
"g": 92,
"b": 218
},
"hsl": {
"h": 269.524,
"s": 63,
"l": 60.784
},
"oklch": {
"l": 0.60171,
"c": 0.18824,
"h": 304
},
"luminance": 0.19586
}Semantic roles & 50–950 ramp
primary
#9A5CDA
secondary
#C9E1B1
accent
#CB1B74
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84