#9A45CB#9A45CB
#9A45CB is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.1% C 0.204 H 310.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #9A45CB |
|---|---|
| RGB | rgb(154, 69, 203) |
| HSL | hsl(278, 56%, 53%) |
| HSV | hsv(278, 66%, 80%) |
| CMYK | cmyk(24.1%, 66%, 0%, 20.4%) |
| CIE-LAB | lab(46.23, 57.31, -54.91) |
| CIE-LCH | lch(46.23, 79.37, 316.22°) |
| OKLab | oklab(56.15% 0.133 -0.155) |
| OKLCH | oklch(56.15% 0.204 310.6) |
| XYZ | xyz(26.2320, 15.4386, 58.0864) |
| Luminance | 0.1544 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.37
Purply
#983FB2
ΔE00 4.35
Lightish Purple
#A552E6
ΔE00 5.71
Vibrant Purple
#AD03DE
ΔE00 5.85
Blueviolet
#8A2BE2
ΔE00 6.47
Amethyst
#9B5FC0
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A45CB #76CB45
analogous
#5745CB #9A45CB #CB45B9
triadic
#9A45CB #CB9A45 #45CB9A
tetradic
#9A45CB #CB5745 #76CB45 #45B9CB
square
#9A45CB #CB5745 #76CB45 #45B9CB
split-complementary
#9A45CB #B9CB45 #45CB57
monochromatic
#562175 #792EA5 #9A45CB #B475D8 #CEA5E6
Accessibility & contrast
On white
5.14
#9A45CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#9A45CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A45CB
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A45CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A45CB | 1.00 | 5.14 | 4.09 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#346FC8
Tritanopia (blue-blind)
#946082
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9a45cb; /* rgb */ color: rgb(154, 69, 203); /* oklch */ color: oklch(56.1% 0.204 310.6);
Tailwind
colors: {
custom: {
50: '#bc7edb',
500: '#9a45cb',
950: '#000000',
},
}SCSS
$custom: #9a45cb; $custom-light: #bc7edb; $custom-dark: #000000;
JSON
{
"hex": "#9a45cb",
"rgb": {
"r": 154,
"g": 69,
"b": 203
},
"hsl": {
"h": 278.06,
"s": 56.303,
"l": 53.333
},
"oklch": {
"l": 0.56148,
"c": 0.20426,
"h": 310.6
},
"luminance": 0.15438
}Semantic roles & 50–950 ramp
primary
#9A45CB
secondary
#AED399
accent
#E04880
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83