#9748CB#9748CB
#9748CB is a mid, vivid violet. Relative luminance 0.155; OKLCH L 56.1% C 0.199 H 309.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #9748CB |
|---|---|
| RGB | rgb(151, 72, 203) |
| HSL | hsl(276, 56%, 54%) |
| HSV | hsv(276, 65%, 80%) |
| CMYK | cmyk(25.6%, 64.5%, 0%, 20.4%) |
| CIE-LAB | lab(46.35, 55.24, -54.75) |
| CIE-LCH | lch(46.35, 77.78, 315.26°) |
| OKLab | oklab(56.15% 0.1257 -0.1546) |
| OKLCH | oklch(56.15% 0.199 309.1) |
| XYZ | xyz(25.8572, 15.5263, 58.1231) |
| Luminance | 0.1553 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.83
Purply
#983FB2
ΔE00 4.69
Lightish Purple
#A552E6
ΔE00 5.55
Purpley
#8756E4
ΔE00 6.13
Amethyst
#9B5FC0
ΔE00 6.27
Deep Lavender
#8D5EB7
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9748CB #7CCB48
analogous
#5648CB #9748CB #CB48BE
triadic
#9748CB #CB9748 #48CB97
tetradic
#9748CB #CB5648 #7CCB48 #48BECB
square
#9748CB #CB5648 #7CCB48 #48BECB
split-complementary
#9748CB #BECB48 #48CB56
monochromatic
#552277 #772FA6 #9748CB #B278D9 #CDA7E6
Accessibility & contrast
On white
5.12
#9748CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#9748CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9748CB
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9748CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9748CB | 1.00 | 5.12 | 4.11 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#336FC8
Tritanopia (blue-blind)
#906383
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #9748cb; /* rgb */ color: rgb(151, 72, 203); /* oklch */ color: oklch(56.1% 0.199 309.1);
Tailwind
colors: {
custom: {
50: '#b980db',
500: '#9748cb',
950: '#000000',
},
}SCSS
$custom: #9748cb; $custom-light: #b980db; $custom-dark: #000000;
JSON
{
"hex": "#9748cb",
"rgb": {
"r": 151,
"g": 72,
"b": 203
},
"hsl": {
"h": 276.183,
"s": 55.745,
"l": 53.922
},
"oklch": {
"l": 0.56149,
"c": 0.1993,
"h": 309.1
},
"luminance": 0.15526
}Semantic roles & 50–950 ramp
primary
#9748CB
secondary
#B2D39B
accent
#DF4984
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83