#9B42CF#9B42CF
#9B42CF is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.2% C 0.212 H 310.2°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #9B42CF |
|---|---|
| RGB | rgb(155, 66, 207) |
| HSL | hsl(278, 59%, 54%) |
| HSV | hsv(278, 68%, 81%) |
| CMYK | cmyk(25.1%, 68.1%, 0%, 18.8%) |
| CIE-LAB | lab(46.14, 59.73, -57.36) |
| CIE-LCH | lch(46.14, 82.81, 316.16°) |
| OKLab | oklab(56.19% 0.1372 -0.1622) |
| OKLCH | oklch(56.19% 0.212 310.2) |
| XYZ | xyz(26.7261, 15.3706, 60.5783) |
| Luminance | 0.1537 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.95
Purply
#983FB2
ΔE00 4.75
Vibrant Purple
#AD03DE
ΔE00 5.24
Lightish Purple
#A552E6
ΔE00 5.65
Blueviolet
#8A2BE2
ΔE00 5.89
Violet (survey)
#9A0EEA
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B42CF #76CF42
analogous
#5442CF #9B42CF #CF42BD
triadic
#9B42CF #CF9B42 #42CF9B
tetradic
#9B42CF #CF5442 #76CF42 #42BDCF
square
#9B42CF #CF5442 #76CF42 #42BDCF
split-complementary
#9B42CF #BDCF42 #42CF54
monochromatic
#571F78 #7A2BA9 #9B42CF #B573DB #CFA4E8
Accessibility & contrast
On white
5.15
#9B42CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#9B42CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9B42CF
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B42CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9B42CF | 1.00 | 5.15 | 4.07 | 5.15 |
| #FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#2C6FCC
Tritanopia (blue-blind)
#946083
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9b42cf; /* rgb */ color: rgb(155, 66, 207); /* oklch */ color: oklch(56.2% 0.212 310.2);
Tailwind
colors: {
custom: {
50: '#bd7dde',
500: '#9b42cf',
950: '#000000',
},
}SCSS
$custom: #9b42cf; $custom-light: #bd7dde; $custom-dark: #000000;
JSON
{
"hex": "#9b42cf",
"rgb": {
"r": 155,
"g": 66,
"b": 207
},
"hsl": {
"h": 277.872,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.56193,
"c": 0.21241,
"h": 310.2
},
"luminance": 0.1537
}Semantic roles & 50–950 ramp
primary
#9B42CF
secondary
#AED598
accent
#E3457F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83