#B166D8#B166D8
#B166D8 is a light, vivid violet. Relative luminance 0.238; OKLCH L 64.1% C 0.178 H 312.8°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #B166D8 |
|---|---|
| RGB | rgb(177, 102, 216) |
| HSL | hsl(279, 59%, 62%) |
| HSV | hsv(279, 53%, 85%) |
| CMYK | cmyk(18.1%, 52.8%, 0%, 15.3%) |
| CIE-LAB | lab(55.90, 49.42, -46.74) |
| CIE-LCH | lch(55.90, 68.02, 316.60°) |
| OKLab | oklab(64.05% 0.1209 -0.1306) |
| OKLCH | oklch(64.05% 0.178 312.8) |
| XYZ | xyz(35.2754, 23.8086, 67.6897) |
| Luminance | 0.2381 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.94
Light Urple
#B36FF6
ΔE00 5.17
Amethyst
#9B5FC0
ΔE00 5.65
Bright Lilac
#C95EFB
ΔE00 5.75
Bright Lavender
#C760FF
ΔE00 6.02
Lighter Purple
#A55AF4
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B166D8 #8DD866
analogous
#7866D8 #B166D8 #D866C6
triadic
#B166D8 #D8B166 #66D8B1
tetradic
#B166D8 #D87866 #8DD866 #66C6D8
square
#B166D8 #D87866 #8DD866 #66C6D8
split-complementary
#B166D8 #C6D866 #66D878
monochromatic
#74289C #9835CC #B166D8 #CA97E4 #E3C8F1
Accessibility & contrast
On white
3.64
#B166D8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.76
#B166D8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B166D8
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B166D8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B166D8 | 1.00 | 3.64 | 5.76 | 5.76 |
| #FFFFFF | 3.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4982DC
Deuteranopia (green-blind)
#6188D5
Tritanopia (blue-blind)
#AD7995
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #b166d8; /* rgb */ color: rgb(177, 102, 216); /* oklch */ color: oklch(64.1% 0.178 312.8);
Tailwind
colors: {
custom: {
50: '#cb94e4',
500: '#b166d8',
950: '#000000',
},
}SCSS
$custom: #b166d8; $custom-light: #cb94e4; $custom-dark: #000000;
JSON
{
"hex": "#b166d8",
"rgb": {
"r": 177,
"g": 102,
"b": 216
},
"hsl": {
"h": 279.474,
"s": 59.375,
"l": 62.353
},
"oklch": {
"l": 0.64051,
"c": 0.17799,
"h": 312.8
},
"luminance": 0.23808
}Semantic roles & 50–950 ramp
primary
#B166D8
secondary
#C6E2B8
accent
#C71E58
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D16
muted
#827E84