#B17AFE#B17AFE
#B17AFE is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.2% C 0.191 H 300.8°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).
Color values
| HEX | #B17AFE |
|---|---|
| RGB | rgb(177, 122, 254) |
| HSL | hsl(265, 99%, 74%) |
| HSV | hsv(265, 52%, 100%) |
| CMYK | cmyk(30.3%, 52%, 0%, 0.4%) |
| CIE-LAB | lab(62.02, 47.49, -58.17) |
| CIE-LCH | lch(62.02, 75.09, 309.23°) |
| OKLab | oklab(69.23% 0.0976 -0.164) |
| OKLCH | oklch(69.23% 0.191 300.8) |
| XYZ | xyz(42.9762, 30.4217, 97.3546) |
| Luminance | 0.3042 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.96
Light Purple
#BF77F6
ΔE00 3.31
Easter Purple
#C071FE
ΔE00 3.37
Liliac
#C48EFD
ΔE00 6.01
Bright Lavender
#C760FF
ΔE00 6.34
Bright Lilac
#C95EFB
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B17AFE #C7FE7A
analogous
#7A85FE #B17AFE #F37AFE
triadic
#B17AFE #FEB17A #7AFEB1
tetradic
#B17AFE #FE7A85 #C7FE7A #7AFEF3
square
#B17AFE #FE7A85 #C7FE7A #7AFEF3
split-complementary
#B17AFE #FEF37A #85FE7A
monochromatic
#6A02FC #8D3DFE #B17AFE #D5B7FE #EDE1FF
Accessibility & contrast
On white
2.96
#B17AFE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.08
#B17AFE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B17AFE
7.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B17AFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B17AFE | 1.00 | 2.96 | 7.08 | 7.08 |
| #FFFFFF | 2.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A95FF
Deuteranopia (green-blind)
#5A95FB
Tritanopia (blue-blind)
#A293B1
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #b17afe; /* rgb */ color: rgb(177, 122, 254); /* oklch */ color: oklch(69.2% 0.191 300.8);
Tailwind
colors: {
custom: {
50: '#cca2ff',
500: '#b17afe',
950: '#000000',
},
}SCSS
$custom: #b17afe; $custom-light: #cca2ff; $custom-dark: #000000;
JSON
{
"hex": "#b17afe",
"rgb": {
"r": 177,
"g": 122,
"b": 254
},
"hsl": {
"h": 265,
"s": 98.507,
"l": 73.725
},
"oklch": {
"l": 0.69232,
"c": 0.19091,
"h": 300.8
},
"luminance": 0.30422
}Semantic roles & 50–950 ramp
primary
#B17AFE
secondary
#E8F7D4
accent
#E60086
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86