#9B26DB#9B26DB
#9B26DB is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.6% C 0.252 H 309.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #9B26DB |
|---|---|
| RGB | rgb(155, 38, 219) |
| HSL | hsl(279, 72%, 50%) |
| HSV | hsv(279, 83%, 86%) |
| CMYK | cmyk(29.2%, 82.6%, 0%, 14.1%) |
| CIE-LAB | lab(43.46, 72.36, -68.58) |
| CIE-LCH | lch(43.46, 99.70, 316.53°) |
| OKLab | oklab(54.58% 0.1589 -0.195) |
| OKLCH | oklch(54.58% 0.252 309.2) |
| XYZ | xyz(26.9942, 13.4698, 68.1820) |
| Luminance | 0.1347 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.22
Violet (survey)
#9A0EEA
ΔE00 2.27
Vibrant Purple
#AD03DE
ΔE00 2.82
Blueviolet
#8A2BE2
ΔE00 3.02
Darkviolet
#9400D3
ΔE00 3.61
Vivid Purple
#9900FA
ΔE00 3.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B26DB #66DB26
analogous
#4126DB #9B26DB #DB26C0
triadic
#9B26DB #DB9B26 #26DB9B
tetradic
#9B26DB #DB4126 #66DB26 #26C0DB
square
#9B26DB #DB4126 #66DB26 #26C0DB
split-complementary
#9B26DB #C0DB26 #26DB41
monochromatic
#511373 #761CA8 #9B26DB #B35AE4 #CB8FEC
Accessibility & contrast
On white
5.69
#9B26DB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#9B26DB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9B26DB
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B26DB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9B26DB | 1.00 | 5.69 | 3.69 | 5.69 |
| #FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062E0
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#915884
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9b26db; /* rgb */ color: rgb(155, 38, 219); /* oklch */ color: oklch(54.6% 0.252 309.2);
Tailwind
colors: {
custom: {
50: '#bf71e7',
500: '#9b26db',
950: '#000000',
},
}SCSS
$custom: #9b26db; $custom-light: #bf71e7; $custom-dark: #000000;
JSON
{
"hex": "#9b26db",
"rgb": {
"r": 155,
"g": 38,
"b": 219
},
"hsl": {
"h": 278.785,
"s": 71.542,
"l": 50.392
},
"oklch": {
"l": 0.54576,
"c": 0.2515,
"h": 309.2
},
"luminance": 0.13469
}Semantic roles & 50–950 ramp
primary
#9B26DB
secondary
#A3D786
accent
#EE3A79
background
#FCF7FE
surface
#F8EDFD
border
#D1C8D5
text
#130916
muted
#827B84