#B17DF2#B17DF2
#B17DF2 is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.0% C 0.172 H 302.7°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).
Color values
| HEX | #B17DF2 |
|---|---|
| RGB | rgb(177, 125, 242) |
| HSL | hsl(267, 82%, 72%) |
| HSV | hsv(267, 48%, 95%) |
| CMYK | cmyk(26.9%, 48.3%, 0%, 5.1%) |
| CIE-LAB | lab(62.02, 43.00, -51.55) |
| CIE-LCH | lch(62.02, 67.13, 309.83°) |
| OKLab | oklab(69.03% 0.0928 -0.1447) |
| OKLCH | oklch(69.03% 0.172 302.7) |
| XYZ | xyz(41.4885, 30.4252, 87.6741) |
| Luminance | 0.3043 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.95
Light Urple
#B36FF6
ΔE00 3.48
Easter Purple
#C071FE
ΔE00 3.93
Liliac
#C48EFD
ΔE00 5.20
Mediumpurple
#9370DB
ΔE00 6.83
Bright Lavender
#C760FF
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B17DF2 #BEF27D
analogous
#7D84F2 #B17DF2 #EC7DF2
triadic
#B17DF2 #F2B17D #7DF2B1
tetradic
#B17DF2 #F27D84 #BEF27D #7DF2EC
square
#B17DF2 #F27D84 #BEF27D #7DF2EC
split-complementary
#B17DF2 #F2EC7D #84F27D
monochromatic
#6F16DE #9045EC #B17DF2 #D2B5F8 #EEE3FC
Accessibility & contrast
On white
2.96
#B17DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.09
#B17DF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B17DF2
7.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B17DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B17DF2 | 1.00 | 2.96 | 7.09 | 7.09 |
| #FFFFFF | 2.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5995F6
Deuteranopia (green-blind)
#6796EF
Tritanopia (blue-blind)
#A592AC
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #b17df2; /* rgb */ color: rgb(177, 125, 242); /* oklch */ color: oklch(69.0% 0.172 302.7);
Tailwind
colors: {
custom: {
50: '#cba4f7',
500: '#b17df2',
950: '#000000',
},
}SCSS
$custom: #b17df2; $custom-light: #cba4f7; $custom-dark: #000000;
JSON
{
"hex": "#b17df2",
"rgb": {
"r": 177,
"g": 125,
"b": 242
},
"hsl": {
"h": 266.667,
"s": 81.818,
"l": 71.961
},
"oklch": {
"l": 0.69028,
"c": 0.17191,
"h": 302.7
},
"luminance": 0.30425
}Semantic roles & 50–950 ramp
primary
#B17DF2
secondary
#E7F4D7
accent
#DE077F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85