#B166DC#B166DC
#B166DC is a light, vivid violet. Relative luminance 0.240; OKLCH L 64.3% C 0.182 H 311.7°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #B166DC |
|---|---|
| RGB | rgb(177, 102, 220) |
| HSL | hsl(278, 63%, 63%) |
| HSV | hsv(278, 54%, 86%) |
| CMYK | cmyk(19.5%, 53.6%, 0%, 13.7%) |
| CIE-LAB | lab(56.11, 50.29, -48.66) |
| CIE-LCH | lch(56.11, 69.98, 315.94°) |
| OKLab | oklab(64.27% 0.1212 -0.1362) |
| OKLCH | oklch(64.27% 0.182 311.7) |
| XYZ | xyz(35.7988, 24.0179, 70.4464) |
| Luminance | 0.2402 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.20
Light Urple
#B36FF6
ΔE00 4.57
Bright Lilac
#C95EFB
ΔE00 5.30
Bright Lavender
#C760FF
ΔE00 5.52
Lighter Purple
#A55AF4
ΔE00 5.57
Lightish Purple
#A552E6
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166DC #91DC66
analogous
#7666DC #B166DC #DC66CC
triadic
#B166DC #DCB166 #66DCB1
tetradic
#B166DC #DC7666 #91DC66 #66CCDC
square
#B166DC #DC7666 #91DC66 #66CCDC
split-complementary
#B166DC #CCDC66 #66DC76
monochromatic
#7525A2 #9834D1 #B166DC #CA98E7 #E4CAF3
Accessibility & contrast
On white
3.62
#B166DC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#B166DC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166DC
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166DC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166DC | 1.00 | 3.62 | 5.80 | 5.80 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4583E0
Deuteranopia (green-blind)
#5E88D9
Tritanopia (blue-blind)
#AC7A97
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #b166dc; /* rgb */ color: rgb(177, 102, 220); /* oklch */ color: oklch(64.3% 0.182 311.7);
Tailwind
colors: {
custom: {
50: '#cb94e7',
500: '#b166dc',
950: '#000000',
},
}SCSS
$custom: #b166dc; $custom-light: #cb94e7; $custom-dark: #000000;
JSON
{
"hex": "#b166dc",
"rgb": {
"r": 177,
"g": 102,
"b": 220
},
"hsl": {
"h": 278.136,
"s": 62.766,
"l": 63.137
},
"oklch": {
"l": 0.64274,
"c": 0.18235,
"h": 311.7
},
"luminance": 0.24017
}Semantic roles & 50–950 ramp
primary
#B166DC
secondary
#C9E4BA
accent
#CB1B5B
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D16
muted
#827E84