#B18DFC#B18DFC
#B18DFC is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.2% C 0.160 H 297.2°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).
Color values
| HEX | #B18DFC |
|---|---|
| RGB | rgb(177, 141, 252) |
| HSL | hsl(259, 95%, 77%) |
| HSV | hsv(259, 44%, 99%) |
| CMYK | cmyk(29.8%, 44%, 0%, 1.2%) |
| CIE-LAB | lab(66.08, 36.56, -50.62) |
| CIE-LCH | lch(66.08, 62.44, 305.84°) |
| OKLab | oklab(72.23% 0.073 -0.142) |
| OKLCH | oklch(72.23% 0.16 297.2) |
| XYZ | xyz(45.2228, 35.4246, 96.5317) |
| Luminance | 0.3543 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.79
Baby Purple
#CA9BF7
ΔE00 6.36
Pastel Purple
#CAA0FF
ΔE00 6.36
Light Purple
#BF77F6
ΔE00 6.49
Periwinkle (survey)
#8E82FE
ΔE00 7.08
Perrywinkle
#8F8CE7
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B18DFC #D8FC8D
analogous
#8DA1FC #B18DFC #E88DFC
triadic
#B18DFC #FCB18D #8DFCB1
tetradic
#B18DFC #FC8DA1 #D8FC8D #8DFCE8
square
#B18DFC #FC8DA1 #D8FC8D #8DFCE8
split-complementary
#B18DFC #FCE88D #A1FC8D
monochromatic
#5F16F9 #8851FA #B18DFC #DAC9FE #EBE1FE
Accessibility & contrast
On white
2.60
#B18DFC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.08
#B18DFC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B18DFC
8.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B18DFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B18DFC | 1.00 | 2.60 | 8.08 | 8.08 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6BA1FF
Deuteranopia (green-blind)
#729FF9
Tritanopia (blue-blind)
#A1A1B8
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b18dfc; /* rgb */ color: rgb(177, 141, 252); /* oklch */ color: oklch(72.2% 0.160 297.2);
Tailwind
colors: {
custom: {
50: '#cbaffe',
500: '#b18dfc',
950: '#000000',
},
}SCSS
$custom: #b18dfc; $custom-light: #cbaffe; $custom-dark: #000000;
JSON
{
"hex": "#b18dfc",
"rgb": {
"r": 177,
"g": 141,
"b": 252
},
"hsl": {
"h": 259.459,
"s": 94.872,
"l": 77.059
},
"oklch": {
"l": 0.72232,
"c": 0.15967,
"h": 297.2
},
"luminance": 0.35425
}Semantic roles & 50–950 ramp
primary
#B18DFC
secondary
#EBF6D5
accent
#E6009B
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86