#9240BF#9240BF
#9240BF is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.8% C 0.196 H 311.2°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).
Color values
| HEX | #9240BF |
|---|---|
| RGB | rgb(146, 64, 191) |
| HSL | hsl(279, 50%, 50%) |
| HSV | hsv(279, 66%, 75%) |
| CMYK | cmyk(23.6%, 66.5%, 0%, 25.1%) |
| CIE-LAB | lab(43.57, 55.23, -52.29) |
| CIE-LCH | lch(43.57, 76.06, 316.57°) |
| OKLab | oklab(53.76% 0.1292 -0.1476) |
| OKLCH | oklch(53.76% 0.196 311.2) |
| XYZ | xyz(23.0897, 13.5399, 50.6772) |
| Luminance | 0.1354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.69
Purply
#983FB2
ΔE00 2.82
Barney
#AC1DB8
ΔE00 5.90
Blueviolet
#8A2BE2
ΔE00 6.14
Vibrant Purple
#AD03DE
ΔE00 6.27
Darkviolet
#9400D3
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9240BF #6DBF40
analogous
#5240BF #9240BF #BF40AD
triadic
#9240BF #BF9240 #40BF92
tetradic
#9240BF #BF5240 #6DBF40 #40ADBF
square
#9240BF #BF5240 #6DBF40 #40ADBF
split-complementary
#9240BF #ADBF40 #40BF52
monochromatic
#4C2163 #6F3191 #9240BF #AC6ECE #C69CDE
Accessibility & contrast
On white
5.66
#9240BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.71
#9240BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9240BF
5.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9240BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9240BF | 1.00 | 5.66 | 3.71 | 5.66 |
| #FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#3168BC
Tritanopia (blue-blind)
#8C5A7A
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9240bf; /* rgb */ color: rgb(146, 64, 191); /* oklch */ color: oklch(53.8% 0.196 311.2);
Tailwind
colors: {
custom: {
50: '#b67bd3',
500: '#9240bf',
950: '#000000',
},
}SCSS
$custom: #9240bf; $custom-light: #b67bd3; $custom-dark: #000000;
JSON
{
"hex": "#9240bf",
"rgb": {
"r": 146,
"g": 64,
"b": 191
},
"hsl": {
"h": 278.74,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.53762,
"c": 0.19614,
"h": 311.2
},
"luminance": 0.13539
}Semantic roles & 50–950 ramp
primary
#9240BF
secondary
#A5CA91
accent
#D94E80
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83