#B17EF8#B17EF8
#B17EF8 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.5% C 0.178 H 301.2°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #B17EF8 |
|---|---|
| RGB | rgb(177, 126, 248) |
| HSL | hsl(265, 90%, 73%) |
| HSV | hsv(265, 49%, 97%) |
| CMYK | cmyk(28.6%, 49.2%, 0%, 2.7%) |
| CIE-LAB | lab(62.55, 43.88, -54.02) |
| CIE-LCH | lch(62.55, 69.60, 309.08°) |
| OKLab | oklab(69.52% 0.0921 -0.1519) |
| OKLCH | oklch(69.52% 0.178 301.2) |
| XYZ | xyz(42.5317, 31.0460, 92.5405) |
| Luminance | 0.3105 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.27
Light Urple
#B36FF6
ΔE00 3.69
Easter Purple
#C071FE
ΔE00 3.98
Liliac
#C48EFD
ΔE00 5.07
Bright Lavender
#C760FF
ΔE00 7.14
Mediumpurple
#9370DB
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B17EF8 #C5F87E
analogous
#7E88F8 #B17EF8 #EE7EF8
triadic
#B17EF8 #F8B17E #7EF8B1
tetradic
#B17EF8 #F87E88 #C5F87E #7EF8EE
square
#B17EF8 #F87E88 #C5F87E #7EF8EE
split-complementary
#B17EF8 #F8EE7E #88F87E
monochromatic
#6B0DEF #8E44F5 #B17EF8 #D4B8FB #EDE2FD
Accessibility & contrast
On white
2.91
#B17EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.21
#B17EF8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B17EF8
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B17EF8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B17EF8 | 1.00 | 2.91 | 7.21 | 7.21 |
| #FFFFFF | 2.91 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5797FC
Deuteranopia (green-blind)
#6497F5
Tritanopia (blue-blind)
#A394B0
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #b17ef8; /* rgb */ color: rgb(177, 126, 248); /* oklch */ color: oklch(69.5% 0.178 301.2);
Tailwind
colors: {
custom: {
50: '#cba4fb',
500: '#b17ef8',
950: '#000000',
},
}SCSS
$custom: #b17ef8; $custom-light: #cba4fb; $custom-dark: #000000;
JSON
{
"hex": "#b17ef8",
"rgb": {
"r": 177,
"g": 126,
"b": 248
},
"hsl": {
"h": 265.082,
"s": 89.706,
"l": 73.333
},
"oklch": {
"l": 0.69522,
"c": 0.17766,
"h": 301.2
},
"luminance": 0.31046
}Semantic roles & 50–950 ramp
primary
#B17EF8
secondary
#E8F6D5
accent
#E60086
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85