#B18AF7#B18AF7
#B18AF7 is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.5% C 0.158 H 298.9°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).
Color values
| HEX | #B18AF7 |
|---|---|
| RGB | rgb(177, 138, 247) |
| HSL | hsl(261, 87%, 75%) |
| HSV | hsv(261, 44%, 97%) |
| CMYK | cmyk(28.3%, 44.1%, 0%, 3.1%) |
| CIE-LAB | lab(65.15, 37.01, -49.34) |
| CIE-LCH | lch(65.15, 61.68, 306.87°) |
| OKLab | oklab(71.46% 0.0762 -0.1383) |
| OKLCH | oklch(71.46% 0.158 298.9) |
| XYZ | xyz(44.0045, 34.2391, 92.2681) |
| Luminance | 0.3424 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.59
Light Purple
#BF77F6
ΔE00 5.65
Baby Purple
#CA9BF7
ΔE00 6.39
Pastel Purple
#CAA0FF
ΔE00 6.69
Easter Purple
#C071FE
ΔE00 6.75
Light Urple
#B36FF6
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B18AF7 #D0F78A
analogous
#8A99F7 #B18AF7 #E88AF7
triadic
#B18AF7 #F7B18A #8AF7B1
tetradic
#B18AF7 #F78A99 #D0F78A #8AF7E8
square
#B18AF7 #F78A99 #D0F78A #8AF7E8
split-complementary
#B18AF7 #F7E88A #99F78A
monochromatic
#6517EF #8B51F3 #B18AF7 #D7C3FB #ECE2FD
Accessibility & contrast
On white
2.68
#B18AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.85
#B18AF7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B18AF7
7.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B18AF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B18AF7 | 1.00 | 2.68 | 7.85 | 7.85 |
| #FFFFFF | 2.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6A9EFB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#A39DB5
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #b18af7; /* rgb */ color: rgb(177, 138, 247); /* oklch */ color: oklch(71.5% 0.158 298.9);
Tailwind
colors: {
custom: {
50: '#cbadfa',
500: '#b18af7',
950: '#000000',
},
}SCSS
$custom: #b18af7; $custom-light: #cbadfa; $custom-dark: #000000;
JSON
{
"hex": "#b18af7",
"rgb": {
"r": 177,
"g": 138,
"b": 247
},
"hsl": {
"h": 261.468,
"s": 87.2,
"l": 75.49
},
"oklch": {
"l": 0.71456,
"c": 0.15792,
"h": 298.9
},
"luminance": 0.34239
}Semantic roles & 50–950 ramp
primary
#B18AF7
secondary
#EAF5D6
accent
#E40293
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85